refactor: Rename query builder classes for consistency

Standardizes class names for different database query builders, aligning naming conventions across SQLite, MySQL, PostgreSQL implementations, and updating related factory method calls to improve code clarity and maintainability.
This commit is contained in:
Sakura Akeno Isayeki 2025-05-10 15:28:56 +02:00
parent 22a3f77271
commit f5c1bf24c0
No known key found for this signature in database
GPG key ID: BAB781B71FD2E7E6
6 changed files with 13 additions and 13 deletions

View file

@ -158,9 +158,9 @@ namespace TShockAPI.DB
public static IQueryBuilder GetSqlQueryBuilder(this IDbConnection db) => db.GetSqlType() switch
{
SqlType.Sqlite => new SqliteQueryCreator(),
SqlType.Mysql => new MysqlQueryCreator(),
SqlType.Postgres => new PostgresQueryCreator(),
SqlType.Sqlite => new SqliteQueryBuilder(),
SqlType.Mysql => new MysqlQueryBuilder(),
SqlType.Postgres => new PostgresQueryBuilder(),
_ => throw new NotSupportedException("Database type not supported.")
};