prisma-sql 1.56.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/generator.js CHANGED
@@ -54,7 +54,7 @@ var require_package = __commonJS({
54
54
  "package.json"(exports$1, module) {
55
55
  module.exports = {
56
56
  name: "prisma-sql",
57
- version: "1.56.0",
57
+ version: "1.58.0",
58
58
  description: "Convert Prisma queries to optimized SQL with type safety. 2-7x faster than Prisma Client.",
59
59
  main: "dist/index.cjs",
60
60
  module: "dist/index.js",
@@ -5397,7 +5397,7 @@ export function speedExtension(config: {
5397
5397
  }
5398
5398
 
5399
5399
  const startTime = Date.now()
5400
- const { sql, params, keys } = buildBatchSql(
5400
+ const { sql, params, keys, aliases } = buildBatchSql(
5401
5401
  batchQueries,
5402
5402
  MODEL_MAP,
5403
5403
  MODELS,
@@ -5413,7 +5413,7 @@ export function speedExtension(config: {
5413
5413
  const normalizedParams = normalizeParams(params)
5414
5414
  const rows = await client.unsafe(sql, normalizedParams as any[])
5415
5415
  const row = rows[0] as Record<string, unknown>
5416
- const results = parseBatchResults(row, keys, batchQueries)
5416
+ const results = parseBatchResults(row, keys, batchQueries, aliases)
5417
5417
  const duration = Date.now() - startTime
5418
5418
 
5419
5419
  onQuery?.({