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:
parent
22a3f77271
commit
f5c1bf24c0
6 changed files with 13 additions and 13 deletions
|
|
@ -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.")
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue