drizzle-kit 0.19.13-e99bac1 → 0.19.13

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 (46) hide show
  1. package/index.cjs +30505 -21937
  2. package/index.d.ts +14 -15
  3. package/package.json +2 -3
  4. package/utils.js +11760 -35976
  5. package/@types/utils.d.ts +0 -12
  6. package/cli/commands/migrate.d.ts +0 -141
  7. package/cli/commands/mysqlUp.d.ts +0 -4
  8. package/cli/commands/pgIntrospect.d.ts +0 -118
  9. package/cli/commands/pgPushUtils.d.ts +0 -14
  10. package/cli/commands/pgUp.d.ts +0 -4
  11. package/cli/commands/sqliteIntrospect.d.ts +0 -102
  12. package/cli/commands/sqliteUtils.d.ts +0 -162
  13. package/cli/commands/upFolders.d.ts +0 -27
  14. package/cli/commands/utils.d.ts +0 -265
  15. package/cli/selector-ui.d.ts +0 -13
  16. package/cli/validations/common.d.ts +0 -13
  17. package/cli/validations/mysql.d.ts +0 -414
  18. package/cli/validations/outputs.d.ts +0 -39
  19. package/cli/validations/pg.d.ts +0 -438
  20. package/cli/validations/sqlite.d.ts +0 -220
  21. package/cli/validations/studio.d.ts +0 -469
  22. package/cli/views.d.ts +0 -61
  23. package/drivers/index.d.ts +0 -26
  24. package/global.d.ts +0 -2
  25. package/introspect.d.ts +0 -4
  26. package/jsonDiffer.d.ts +0 -76
  27. package/jsonStatements.d.ts +0 -349
  28. package/migrationPreparator.d.ts +0 -35
  29. package/schemaValidator.d.ts +0 -1236
  30. package/serializer/index.d.ts +0 -9
  31. package/serializer/mysqlImports.d.ts +0 -6
  32. package/serializer/mysqlSchema.d.ts +0 -3833
  33. package/serializer/mysqlSerializer.d.ts +0 -7
  34. package/serializer/pgImports.d.ts +0 -11
  35. package/serializer/pgSchema.d.ts +0 -4000
  36. package/serializer/pgSerializer.d.ts +0 -7
  37. package/serializer/sqliteImports.d.ts +0 -5
  38. package/serializer/sqliteSchema.d.ts +0 -3162
  39. package/serializer/sqliteSerializer.d.ts +0 -8
  40. package/serializer/studioUtils.d.ts +0 -31
  41. package/snapshotsDiffer.d.ts +0 -2660
  42. package/sqlgenerator.d.ts +0 -33
  43. package/sqlite-introspect.d.ts +0 -5
  44. package/utils/words.d.ts +0 -7
  45. package/utils.d.ts +0 -32
  46. package/utilsR.d.ts +0 -209
@@ -1,8 +0,0 @@
1
- import { SQLiteSchemaInternal } from "src/serializer/sqliteSchema";
2
- import { Relations } from "drizzle-orm";
3
- import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
4
- import { IntrospectStage, IntrospectStatus } from "src/cli/views";
5
- import { DrizzleDbClient } from "src/drivers";
6
- export declare const generateSqliteSnapshot: (tables: AnySQLiteTable[], enums: any[]) => SQLiteSchemaInternal;
7
- export declare const fromDatabase: (db: DrizzleDbClient, tablesFilter?: (table: string) => boolean, progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<SQLiteSchemaInternal>;
8
- export declare const toDrizzle: (schema: SQLiteSchemaInternal) => Record<string, AnySQLiteTable | Relations>;
@@ -1,31 +0,0 @@
1
- import { Relations } from "drizzle-orm";
2
- import { AnyMySqlTable } from "drizzle-orm/mysql-core";
3
- import { AnyPgTable } from "drizzle-orm/pg-core";
4
- import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
5
- import { StudioConfigConnections } from "src/cli/validations/studio";
6
- export declare const prepareModels: (path: string | string[]) => Promise<{
7
- pgSchema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>>;
8
- mysqlSchema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>>;
9
- sqliteSchema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>>;
10
- }>;
11
- export declare const drizzleDb: (drizzleConfig: StudioConfigConnections, models: {
12
- pgSchema?: Record<string, AnyPgTable | Relations>;
13
- mysqlSchema?: Record<string, AnyMySqlTable | Relations>;
14
- sqliteSchema?: Record<string, AnySQLiteTable | Relations>;
15
- }, logger: boolean) => Promise<{
16
- db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
17
- type: "pg";
18
- schema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
19
- } | {
20
- db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
21
- type: "mysql";
22
- schema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
23
- } | {
24
- db: import("drizzle-orm/driver.d-1c9fcc75").B<Record<string, never>>;
25
- type: "sqlite";
26
- schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
27
- } | {
28
- db: import("drizzle-orm/driver.d-f4e534d3").L<Record<string, never>>;
29
- type: "sqlite";
30
- schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm/query-promise.d-0dd411fc").a<string>>>> | undefined;
31
- }>;