Skip to content

Commit

Permalink
Updated:
Browse files Browse the repository at this point in the history
- Formatted with dprint mysql select/ select.types files
  • Loading branch information
ProvorovOleksii committed Dec 9, 2024
1 parent 2bcd578 commit 575d231
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/mysql-core/query-builders/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class MySqlSelectBuilder<
from<TFrom extends MySqlTable | Subquery | MySqlViewBase | SQL>(
source: TFrom,
onIndex?: TFrom extends MySqlTable ? IndexConfig
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views.',
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views',
): CreateMySqlSelectFromBuilderMode<
TBuilderMode,
GetSelectTableName<TFrom>,
Expand Down Expand Up @@ -229,7 +229,7 @@ export abstract class MySqlSelectQueryBuilderBase<
table: MySqlTable | Subquery | MySqlViewBase | SQL,
on: ((aliases: TSelection) => SQL | undefined) | SQL | undefined,
onIndex?: TJoinedTable extends MySqlTable ? IndexConfig
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views.',
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views',
) => {
const baseTableName = this.tableName;
const tableName = getTableLikeName(table);
Expand Down
3 changes: 2 additions & 1 deletion drizzle-orm/src/mysql-core/query-builders/select.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export type MySqlJoinFn<
>(
table: TJoinedTable,
on: ((aliases: T['_']['selection']) => SQL | undefined) | SQL | undefined,
onIndex?: TJoinedTable extends MySqlTable ? IndexConfig : 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views.',
onIndex?: TJoinedTable extends MySqlTable ? IndexConfig
: 'Index hint configuration is allowed only for MySqlTable and not for subqueries or views',
) => MySqlJoin<T, TDynamic, TJoinType, TJoinedTable, TJoinedName>;

export type SelectedFieldsFlat = SelectedFieldsFlatBase<MySqlColumn>;
Expand Down

0 comments on commit 575d231

Please sign in to comment.