drizzle-kit 0.20.14-d8f1e46 → 0.20.14-e8e7ed6

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.
Files changed (50) hide show
  1. package/bin.cjs +21878 -21519
  2. package/cli/commands/migrate.d.ts +121 -97
  3. package/cli/commands/mysqlIntrospect.d.ts +8 -14
  4. package/cli/commands/mysqlPushUtils.d.ts +2 -2
  5. package/cli/commands/pgConnect.d.ts +1 -1
  6. package/cli/commands/pgIntrospect.d.ts +18 -11
  7. package/cli/commands/pgPushUtils.d.ts +2 -2
  8. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  9. package/cli/commands/sqlitePushUtils.d.ts +3 -3
  10. package/cli/commands/utils.d.ts +15 -259
  11. package/cli/validations/cli.d.ts +107 -0
  12. package/cli/validations/common.d.ts +205 -7
  13. package/cli/validations/mysql.d.ts +6 -1
  14. package/cli/validations/pg.d.ts +6 -1
  15. package/cli/validations/sqlite.d.ts +382 -0
  16. package/cli/views.d.ts +7 -5
  17. package/global.d.ts +3 -1
  18. package/index.d.mts +8 -6
  19. package/index.d.ts +8 -6
  20. package/index.js +1 -0
  21. package/introspect-mysql.d.ts +1 -1
  22. package/introspect-pg.d.ts +5 -2
  23. package/introspect-sqlite.d.ts +1 -1
  24. package/jsonDiffer.d.ts +14 -29
  25. package/jsonStatements.d.ts +38 -11
  26. package/package.json +18 -51
  27. package/payload.d.mts +18 -988
  28. package/payload.d.ts +18 -988
  29. package/payload.js +18030 -7175
  30. package/payload.mjs +9020 -9305
  31. package/schemaValidator.d.ts +73 -70
  32. package/serializer/mysqlImports.d.ts +3 -7
  33. package/serializer/mysqlSchema.d.ts +1624 -493
  34. package/serializer/mysqlSerializer.d.ts +4 -4
  35. package/serializer/pgImports.d.ts +2 -2
  36. package/serializer/pgSchema.d.ts +1260 -801
  37. package/serializer/sqliteImports.d.ts +2 -4
  38. package/serializer/sqliteSchema.d.ts +144 -570
  39. package/serializer/sqliteSerializer.d.ts +3 -3
  40. package/snapshotsDiffer.d.ts +1908 -1050
  41. package/utils/words.d.ts +1 -1
  42. package/utils-studio.js +4147 -83
  43. package/utils-studio.mjs +4147 -83
  44. package/utils.d.ts +6 -140
  45. package/utils.js +3903 -7064
  46. package/utils.mjs +3982 -7143
  47. package/cli/commands/mysqlUp.d.ts +0 -4
  48. package/cli/commands/pgUp.d.ts +0 -4
  49. package/cli/commands/sqliteUtils.d.ts +0 -162
  50. package/cli/commands/upFolders.d.ts +0 -27
@@ -1,7 +1,7 @@
1
- import { AnyMySqlTable, MySqlSchema } from "drizzle-orm/mysql-core";
2
- import { MySqlSchemaInternal } from "src/serializer/mysqlSchema";
3
- import { IntrospectStage, IntrospectStatus } from "src/cli/views";
1
+ import { AnyMySqlTable } from "drizzle-orm/mysql-core";
2
+ import { MySqlSchemaInternal } from "../serializer/mysqlSchema";
3
+ import { IntrospectStage, IntrospectStatus } from "../cli/views";
4
4
  import { DrizzleDbClient } from "src/drivers";
5
5
  export declare const indexName: (tableName: string, columns: string[]) => string;
6
- export declare const generateMySqlSnapshot: (tables: AnyMySqlTable[], enums: any[], mysqlSchemas: MySqlSchema[]) => MySqlSchemaInternal;
6
+ export declare const generateMySqlSnapshot: (tables: AnyMySqlTable[]) => MySqlSchemaInternal;
7
7
  export declare const fromDatabase: (db: DrizzleDbClient, inputSchema: string, tablesFilter?: (table: string) => boolean, progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<MySqlSchemaInternal>;
@@ -1,11 +1,11 @@
1
1
  import { PgSchema, PgEnum, AnyPgTable } from "drizzle-orm/pg-core";
2
2
  export declare const prepareFromExports: (exports: Record<string, unknown>) => {
3
- tables: AnyPgTable<{}>[];
3
+ tables: AnyPgTable[];
4
4
  enums: PgEnum<any>[];
5
5
  schemas: PgSchema<string>[];
6
6
  };
7
7
  export declare const prepareFromPgImports: (imports: string[]) => Promise<{
8
- tables: AnyPgTable<{}>[];
8
+ tables: AnyPgTable[];
9
9
  enums: PgEnum<any>[];
10
10
  schemas: PgSchema<string>[];
11
11
  }>;