drizzle-kit 0.24.2-01106be → 0.24.2-12dd7e5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/api.js +4 -9
  2. package/api.mjs +4 -9
  3. package/bin.cjs +1 -1
  4. package/package.json +1 -1
package/api.js CHANGED
@@ -82949,11 +82949,11 @@ var init_count3 = __esm({
82949
82949
  return sql`(select count(*) from ${source}${sql.raw(" where ").if(filters)}${filters})`;
82950
82950
  }
82951
82951
  static buildCount(source, filters) {
82952
- return sql`select cast(count(*) as UNSIGNED) as count from ${source}${sql.raw(" where ").if(filters)}${filters}`;
82952
+ return sql`select count(*) from ${source}${sql.raw(" where ").if(filters)}${filters}`;
82953
82953
  }
82954
82954
  then(onfulfilled, onrejected) {
82955
82955
  return Promise.resolve(this.session.all(this.sql)).then((it) => {
82956
- return it[0]["count"];
82956
+ return it[0]["count(*)"];
82957
82957
  }).then(
82958
82958
  onfulfilled,
82959
82959
  onrejected
@@ -104440,7 +104440,7 @@ function assertUnreachable2(_3) {
104440
104440
  throw new Error("Didn't expect to get here");
104441
104441
  }
104442
104442
  async function drizzle14(client, params) {
104443
- const { connection: connection2, ws: ws3, ...drizzleConfig } = params;
104443
+ const { connection: connection2, ...drizzleConfig } = params;
104444
104444
  switch (client) {
104445
104445
  case "node-postgres": {
104446
104446
  const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
@@ -104522,14 +104522,9 @@ async function drizzle14(client, params) {
104522
104522
  return db2;
104523
104523
  }
104524
104524
  case "neon-serverless": {
104525
- const { Pool: Pool2, neonConfig } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(
104526
- () => importError("@neondatabase/serverless")
104527
- );
104525
+ const { Pool: Pool2 } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
104528
104526
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_serverless(), neon_serverless_exports));
104529
104527
  const instance = new Pool2(connection2);
104530
- if (ws3) {
104531
- neonConfig.webSocketConstructor = ws3;
104532
- }
104533
104528
  const db2 = drizzle22(instance, drizzleConfig);
104534
104529
  db2.$client = instance;
104535
104530
  return db2;
package/api.mjs CHANGED
@@ -82953,11 +82953,11 @@ var init_count3 = __esm({
82953
82953
  return sql`(select count(*) from ${source}${sql.raw(" where ").if(filters)}${filters})`;
82954
82954
  }
82955
82955
  static buildCount(source, filters) {
82956
- return sql`select cast(count(*) as UNSIGNED) as count from ${source}${sql.raw(" where ").if(filters)}${filters}`;
82956
+ return sql`select count(*) from ${source}${sql.raw(" where ").if(filters)}${filters}`;
82957
82957
  }
82958
82958
  then(onfulfilled, onrejected) {
82959
82959
  return Promise.resolve(this.session.all(this.sql)).then((it) => {
82960
- return it[0]["count"];
82960
+ return it[0]["count(*)"];
82961
82961
  }).then(
82962
82962
  onfulfilled,
82963
82963
  onrejected
@@ -104443,7 +104443,7 @@ function assertUnreachable2(_3) {
104443
104443
  throw new Error("Didn't expect to get here");
104444
104444
  }
104445
104445
  async function drizzle14(client, params) {
104446
- const { connection: connection2, ws: ws3, ...drizzleConfig } = params;
104446
+ const { connection: connection2, ...drizzleConfig } = params;
104447
104447
  switch (client) {
104448
104448
  case "node-postgres": {
104449
104449
  const { Pool: Pool2 } = await Promise.resolve().then(() => __toESM(require_lib3(), 1)).catch(() => importError("pg"));
@@ -104525,14 +104525,9 @@ async function drizzle14(client, params) {
104525
104525
  return db2;
104526
104526
  }
104527
104527
  case "neon-serverless": {
104528
- const { Pool: Pool2, neonConfig } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(
104529
- () => importError("@neondatabase/serverless")
104530
- );
104528
+ const { Pool: Pool2 } = await Promise.resolve().then(() => (init_serverless(), serverless_exports)).catch(() => importError("@neondatabase/serverless"));
104531
104529
  const { drizzle: drizzle22 } = await Promise.resolve().then(() => (init_neon_serverless(), neon_serverless_exports));
104532
104530
  const instance = new Pool2(connection2);
104533
- if (ws3) {
104534
- neonConfig.webSocketConstructor = ws3;
104535
- }
104536
104531
  const db2 = drizzle22(instance, drizzleConfig);
104537
104532
  db2.$client = instance;
104538
104533
  return db2;
package/bin.cjs CHANGED
@@ -85221,7 +85221,7 @@ init_utils2();
85221
85221
  var version2 = async () => {
85222
85222
  const { npmVersion } = await ormCoreVersions();
85223
85223
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
85224
- const envVersion = "0.24.2-01106be";
85224
+ const envVersion = "0.24.2-12dd7e5";
85225
85225
  const kitVersion = envVersion ? `v${envVersion}` : "--";
85226
85226
  const versions = `drizzle-kit: ${kitVersion}
85227
85227
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.24.2-01106be",
3
+ "version": "0.24.2-12dd7e5",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",