drizzle-kit 0.20.4-5f82cc8 → 0.20.4-ab73d4a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/bin.cjs +4 -2
  2. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -58345,11 +58345,12 @@ var init_studioUtils = __esm({
58345
58345
  logger: verbose
58346
58346
  });
58347
58347
  const proxy = async (params) => {
58348
- return client.query({
58348
+ const result = await client.query({
58349
58349
  text: params.sql,
58350
58350
  values: params.params,
58351
58351
  rowMode: "array"
58352
58352
  });
58353
+ return result.rows;
58353
58354
  };
58354
58355
  return {
58355
58356
  dialect: "pg",
@@ -58367,11 +58368,12 @@ var init_studioUtils = __esm({
58367
58368
  const client = createPool({ ...config.dbCredentials, connectionLimit: 1 });
58368
58369
  const db = drizzle2(client, { logger: verbose });
58369
58370
  const proxy = async (params) => {
58370
- return client.query({
58371
+ const result = await client.query({
58371
58372
  sql: params.sql,
58372
58373
  values: params.params,
58373
58374
  rowsAsArray: true
58374
58375
  });
58376
+ return result[0];
58375
58377
  };
58376
58378
  return {
58377
58379
  dialect: "mysql",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.4-5f82cc8",
3
+ "version": "0.20.4-ab73d4a",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",