drizzle-kit 0.20.14-22fcd3b → 0.20.14-6ce9d1f

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/bin.cjs +41476 -41661
  2. package/cli/commands/check.d.ts +2 -0
  3. package/cli/commands/drop.d.ts +4 -0
  4. package/cli/commands/migrate.d.ts +7 -7
  5. package/cli/commands/mysqlIntrospect.d.ts +119 -0
  6. package/cli/commands/mysqlPushUtils.d.ts +18 -0
  7. package/cli/commands/mysqlUp.d.ts +1 -1
  8. package/cli/commands/pgConnect.d.ts +1 -1
  9. package/cli/commands/pgIntrospect.d.ts +1 -1
  10. package/cli/commands/pgPushUtils.d.ts +2 -2
  11. package/cli/commands/pgUp.d.ts +1 -1
  12. package/cli/commands/push.d.ts +6 -0
  13. package/cli/commands/sqlitePushUtils.d.ts +21 -0
  14. package/cli/commands/sqliteUp.d.ts +2 -0
  15. package/cli/commands/upFolders.d.ts +1 -1
  16. package/cli/commands/utils.d.ts +13 -4
  17. package/cli/index.d.ts +71 -0
  18. package/cli/validations/common.d.ts +1 -1
  19. package/cli/validations/studio.d.ts +16 -16
  20. package/cli/views.d.ts +1 -1
  21. package/drivers/index.d.ts +14 -0
  22. package/global.d.ts +1 -0
  23. package/index.d.mts +8 -6
  24. package/index.d.ts +8 -6
  25. package/introspect-mysql.d.ts +9 -0
  26. package/package.json +15 -3
  27. package/payload.d.mts +33 -0
  28. package/payload.d.ts +33 -0
  29. package/payload.js +37000 -0
  30. package/payload.mjs +37019 -0
  31. package/schemaValidator.d.ts +1 -1
  32. package/serializer/mysqlImports.d.ts +5 -0
  33. package/serializer/mysqlSerializer.d.ts +4 -4
  34. package/serializer/sqliteImports.d.ts +4 -0
  35. package/serializer/sqliteSerializer.d.ts +2 -2
  36. package/serializer/studioUtils.d.ts +7 -7
  37. package/utils/certs.d.ts +4 -0
  38. package/utils-studio.js +12 -7
  39. package/utils-studio.mjs +12 -7
  40. package/utils.d.ts +1 -15
  41. package/utils.js +3629 -54850
  42. package/utils.mjs +8076 -0
package/payload.d.ts ADDED
@@ -0,0 +1,33 @@
1
+ import { PgDatabase } from "drizzle-orm/pg-core";
2
+ import { PgSchema as PgSchemaKit } from "./serializer/pgSchema";
3
+ import { SQLiteSchema as SQLiteSchemaKit } from "./serializer/sqliteSchema";
4
+ import { MySqlSchema as MySQLSchemaKit } from "./serializer/mysqlSchema";
5
+ import { MySql2Database } from "drizzle-orm/mysql2";
6
+ import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
7
+ export type DrizzleSnapshotJSON = PgSchemaKit;
8
+ export type DrizzleSQLiteSnapshotJSON = SQLiteSchemaKit;
9
+ export type DrizzleMySQLSnapshotJSON = MySQLSchemaKit;
10
+ export declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => PgSchemaKit;
11
+ export declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
12
+ export declare const pushSchema: (imports: Record<string, unknown>, db: PgDatabase<any>) => Promise<{
13
+ hasDataLoss: boolean;
14
+ warnings: string[];
15
+ statementsToExecute: string[];
16
+ apply: () => Promise<void>;
17
+ }>;
18
+ export declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<SQLiteSchemaKit>;
19
+ export declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
20
+ export declare const pushSQLiteSchema: (imports: Record<string, unknown>, db: BetterSQLite3Database<any>) => Promise<{
21
+ hasDataLoss: boolean;
22
+ warnings: string[];
23
+ statementsToExecute: string[];
24
+ apply: () => Promise<void>;
25
+ }>;
26
+ export declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => Promise<MySQLSchemaKit>;
27
+ export declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
28
+ export declare const pushMySQLSchema: (imports: Record<string, unknown>, db: MySql2Database<any>, databaseName: string) => Promise<{
29
+ hasDataLoss: boolean;
30
+ warnings: string[];
31
+ statementsToExecute: string[];
32
+ apply: () => Promise<void>;
33
+ }>;