drizzle-kit 0.27.1 → 0.27.2-96d338b

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/api.d.mts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
2
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
3
  import { PgDatabase } from 'drizzle-orm/pg-core';
4
- import { C as CasingType } from './common-DYjgLS6u.mjs';
4
+ import { C as CasingType, a as Config } from './index-BfiZoTqG.mjs';
5
5
  import * as zod from 'zod';
6
6
  import { TypeOf } from 'zod';
7
+ import 'tls';
7
8
 
8
9
  declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
9
10
  version: zod.ZodLiteral<"5">;
@@ -782,10 +783,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
782
783
  using: zod.ZodOptional<zod.ZodString>;
783
784
  withCheck: zod.ZodOptional<zod.ZodString>;
784
785
  on: zod.ZodOptional<zod.ZodString>;
786
+ schema: zod.ZodOptional<zod.ZodString>;
785
787
  }, "strict", zod.ZodTypeAny, {
786
788
  name: string;
787
789
  using?: string | undefined;
788
790
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
791
+ schema?: string | undefined;
789
792
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
790
793
  to?: string[] | undefined;
791
794
  withCheck?: string | undefined;
@@ -794,6 +797,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
794
797
  name: string;
795
798
  using?: string | undefined;
796
799
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
800
+ schema?: string | undefined;
797
801
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
798
802
  to?: string[] | undefined;
799
803
  withCheck?: string | undefined;
@@ -881,6 +885,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
881
885
  name: string;
882
886
  using?: string | undefined;
883
887
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
888
+ schema?: string | undefined;
884
889
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
885
890
  to?: string[] | undefined;
886
891
  withCheck?: string | undefined;
@@ -958,6 +963,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
958
963
  name: string;
959
964
  using?: string | undefined;
960
965
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
966
+ schema?: string | undefined;
961
967
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
962
968
  to?: string[] | undefined;
963
969
  withCheck?: string | undefined;
@@ -1328,10 +1334,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1328
1334
  using: zod.ZodOptional<zod.ZodString>;
1329
1335
  withCheck: zod.ZodOptional<zod.ZodString>;
1330
1336
  on: zod.ZodOptional<zod.ZodString>;
1337
+ schema: zod.ZodOptional<zod.ZodString>;
1331
1338
  }, "strict", zod.ZodTypeAny, {
1332
1339
  name: string;
1333
1340
  using?: string | undefined;
1334
1341
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1342
+ schema?: string | undefined;
1335
1343
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1336
1344
  to?: string[] | undefined;
1337
1345
  withCheck?: string | undefined;
@@ -1340,6 +1348,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1340
1348
  name: string;
1341
1349
  using?: string | undefined;
1342
1350
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1351
+ schema?: string | undefined;
1343
1352
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1344
1353
  to?: string[] | undefined;
1345
1354
  withCheck?: string | undefined;
@@ -1485,6 +1494,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1485
1494
  name: string;
1486
1495
  using?: string | undefined;
1487
1496
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1497
+ schema?: string | undefined;
1488
1498
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1489
1499
  to?: string[] | undefined;
1490
1500
  withCheck?: string | undefined;
@@ -1570,6 +1580,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1570
1580
  name: string;
1571
1581
  using?: string | undefined;
1572
1582
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1583
+ schema?: string | undefined;
1573
1584
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1574
1585
  to?: string[] | undefined;
1575
1586
  withCheck?: string | undefined;
@@ -1673,6 +1684,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1673
1684
  name: string;
1674
1685
  using?: string | undefined;
1675
1686
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1687
+ schema?: string | undefined;
1676
1688
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1677
1689
  to?: string[] | undefined;
1678
1690
  withCheck?: string | undefined;
@@ -1768,6 +1780,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1768
1780
  name: string;
1769
1781
  using?: string | undefined;
1770
1782
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1783
+ schema?: string | undefined;
1771
1784
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1772
1785
  to?: string[] | undefined;
1773
1786
  withCheck?: string | undefined;
@@ -2273,7 +2286,7 @@ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
2273
2286
  type DrizzleMySQLSnapshotJSON = MySqlSchema;
2274
2287
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2275
2288
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2276
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
2289
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2277
2290
  hasDataLoss: boolean;
2278
2291
  warnings: string[];
2279
2292
  statementsToExecute: string[];
@@ -2363,6 +2376,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2363
2376
  }>;
2364
2377
  policies: Record<string, {
2365
2378
  name: string;
2379
+ schema?: string | undefined;
2366
2380
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2367
2381
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2368
2382
  to?: string[] | undefined;
@@ -2378,6 +2392,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2378
2392
  }>;
2379
2393
  policies: Record<string, {
2380
2394
  name: string;
2395
+ schema?: string | undefined;
2381
2396
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2382
2397
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2383
2398
  to?: string[] | undefined;
package/api.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
2
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
3
  import { PgDatabase } from 'drizzle-orm/pg-core';
4
- import { C as CasingType } from './common-DYjgLS6u.js';
4
+ import { C as CasingType, a as Config } from './index-BfiZoTqG.js';
5
5
  import * as zod from 'zod';
6
6
  import { TypeOf } from 'zod';
7
+ import 'tls';
7
8
 
8
9
  declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
9
10
  version: zod.ZodLiteral<"5">;
@@ -782,10 +783,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
782
783
  using: zod.ZodOptional<zod.ZodString>;
783
784
  withCheck: zod.ZodOptional<zod.ZodString>;
784
785
  on: zod.ZodOptional<zod.ZodString>;
786
+ schema: zod.ZodOptional<zod.ZodString>;
785
787
  }, "strict", zod.ZodTypeAny, {
786
788
  name: string;
787
789
  using?: string | undefined;
788
790
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
791
+ schema?: string | undefined;
789
792
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
790
793
  to?: string[] | undefined;
791
794
  withCheck?: string | undefined;
@@ -794,6 +797,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
794
797
  name: string;
795
798
  using?: string | undefined;
796
799
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
800
+ schema?: string | undefined;
797
801
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
798
802
  to?: string[] | undefined;
799
803
  withCheck?: string | undefined;
@@ -881,6 +885,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
881
885
  name: string;
882
886
  using?: string | undefined;
883
887
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
888
+ schema?: string | undefined;
884
889
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
885
890
  to?: string[] | undefined;
886
891
  withCheck?: string | undefined;
@@ -958,6 +963,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
958
963
  name: string;
959
964
  using?: string | undefined;
960
965
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
966
+ schema?: string | undefined;
961
967
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
962
968
  to?: string[] | undefined;
963
969
  withCheck?: string | undefined;
@@ -1328,10 +1334,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1328
1334
  using: zod.ZodOptional<zod.ZodString>;
1329
1335
  withCheck: zod.ZodOptional<zod.ZodString>;
1330
1336
  on: zod.ZodOptional<zod.ZodString>;
1337
+ schema: zod.ZodOptional<zod.ZodString>;
1331
1338
  }, "strict", zod.ZodTypeAny, {
1332
1339
  name: string;
1333
1340
  using?: string | undefined;
1334
1341
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1342
+ schema?: string | undefined;
1335
1343
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1336
1344
  to?: string[] | undefined;
1337
1345
  withCheck?: string | undefined;
@@ -1340,6 +1348,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1340
1348
  name: string;
1341
1349
  using?: string | undefined;
1342
1350
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1351
+ schema?: string | undefined;
1343
1352
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1344
1353
  to?: string[] | undefined;
1345
1354
  withCheck?: string | undefined;
@@ -1485,6 +1494,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1485
1494
  name: string;
1486
1495
  using?: string | undefined;
1487
1496
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1497
+ schema?: string | undefined;
1488
1498
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1489
1499
  to?: string[] | undefined;
1490
1500
  withCheck?: string | undefined;
@@ -1570,6 +1580,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1570
1580
  name: string;
1571
1581
  using?: string | undefined;
1572
1582
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1583
+ schema?: string | undefined;
1573
1584
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1574
1585
  to?: string[] | undefined;
1575
1586
  withCheck?: string | undefined;
@@ -1673,6 +1684,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1673
1684
  name: string;
1674
1685
  using?: string | undefined;
1675
1686
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1687
+ schema?: string | undefined;
1676
1688
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1677
1689
  to?: string[] | undefined;
1678
1690
  withCheck?: string | undefined;
@@ -1768,6 +1780,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1768
1780
  name: string;
1769
1781
  using?: string | undefined;
1770
1782
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1783
+ schema?: string | undefined;
1771
1784
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1772
1785
  to?: string[] | undefined;
1773
1786
  withCheck?: string | undefined;
@@ -2273,7 +2286,7 @@ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
2273
2286
  type DrizzleMySQLSnapshotJSON = MySqlSchema;
2274
2287
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2275
2288
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2276
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
2289
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2277
2290
  hasDataLoss: boolean;
2278
2291
  warnings: string[];
2279
2292
  statementsToExecute: string[];
@@ -2363,6 +2376,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2363
2376
  }>;
2364
2377
  policies: Record<string, {
2365
2378
  name: string;
2379
+ schema?: string | undefined;
2366
2380
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2367
2381
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2368
2382
  to?: string[] | undefined;
@@ -2378,6 +2392,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2378
2392
  }>;
2379
2393
  policies: Record<string, {
2380
2394
  name: string;
2395
+ schema?: string | undefined;
2381
2396
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2382
2397
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2383
2398
  to?: string[] | undefined;