Skip to content

Commit

Permalink
Improve rqb query generation for more performant queries
Browse files Browse the repository at this point in the history
  • Loading branch information
dankochetov committed Jul 24, 2023
1 parent 2d865ee commit 1a81964
Show file tree
Hide file tree
Showing 35 changed files with 2,095 additions and 1,633 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ rules:
'no-instanceof/no-instanceof': 'error'
'drizzle/require-entity-kind': 'error'
'unicorn/prefer-string-replace-all': 'off'
'unicorn/no-process-exit': 'off'
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prefer-workspace-packages = true
# prefer-workspace-packages = true
2 changes: 1 addition & 1 deletion drizzle-orm/src/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function mapColumnsInAliasedSQLToAlias(query: SQL.Aliased, alias: string)
}

export function mapColumnsInSQLToAlias(query: SQL, alias: string): SQL {
return sql.fromList(query.queryChunks.map((c) => {
return sql.join(query.queryChunks.map((c) => {
if (is(c, Column)) {
return aliasedTableColumn(c, alias);
}
Expand Down
Loading

0 comments on commit 1a81964

Please sign in to comment.