drizzle-kit 0.20.0-f39d8bc → 0.20.0

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 (53) hide show
  1. package/@types/utils.d.ts +12 -0
  2. package/cli/commands/migrate.d.ts +260 -0
  3. package/cli/commands/mysqlUp.d.ts +4 -0
  4. package/cli/commands/pgConnect.d.ts +5 -0
  5. package/cli/commands/pgIntrospect.d.ts +116 -0
  6. package/cli/commands/pgPushUtils.d.ts +14 -0
  7. package/cli/commands/pgUp.d.ts +4 -0
  8. package/cli/commands/sqliteIntrospect.d.ts +102 -0
  9. package/cli/commands/sqliteUtils.d.ts +162 -0
  10. package/cli/commands/upFolders.d.ts +27 -0
  11. package/cli/commands/utils.d.ts +265 -0
  12. package/cli/selector-ui.d.ts +13 -0
  13. package/cli/utils.d.ts +11 -0
  14. package/cli/validations/common.d.ts +13 -0
  15. package/cli/validations/mysql.d.ts +365 -0
  16. package/cli/validations/outputs.d.ts +40 -0
  17. package/cli/validations/pg.d.ts +438 -0
  18. package/cli/validations/sqlite.d.ts +220 -0
  19. package/cli/validations/studio.d.ts +593 -0
  20. package/cli/views.d.ts +61 -0
  21. package/drivers/index.d.ts +25 -0
  22. package/global.d.ts +3 -0
  23. package/index.cjs +31555 -39668
  24. package/index.d.ts +48 -1
  25. package/introspect.d.ts +4 -0
  26. package/jsonDiffer.d.ts +76 -0
  27. package/jsonStatements.d.ts +349 -0
  28. package/migrationPreparator.d.ts +35 -0
  29. package/orm-extenstions/d1-driver/driver.d.ts +8 -0
  30. package/orm-extenstions/d1-driver/session.d.ts +51 -0
  31. package/orm-extenstions/d1-driver/wrangler-client.d.ts +3 -0
  32. package/package.json +9 -7
  33. package/schemaValidator.d.ts +1306 -0
  34. package/serializer/index.d.ts +9 -0
  35. package/serializer/mysqlImports.d.ts +6 -0
  36. package/serializer/mysqlSchema.d.ts +3833 -0
  37. package/serializer/mysqlSerializer.d.ts +7 -0
  38. package/serializer/pgImports.d.ts +11 -0
  39. package/serializer/pgSchema.d.ts +4244 -0
  40. package/serializer/pgSerializer.d.ts +9 -0
  41. package/serializer/sqliteImports.d.ts +5 -0
  42. package/serializer/sqliteSchema.d.ts +3227 -0
  43. package/serializer/sqliteSerializer.d.ts +8 -0
  44. package/serializer/studioUtils.d.ts +53 -0
  45. package/snapshotsDiffer.d.ts +2660 -0
  46. package/sqlgenerator.d.ts +33 -0
  47. package/sqlite-introspect.d.ts +5 -0
  48. package/utils/words.d.ts +7 -0
  49. package/utils-studio.d.ts +5 -0
  50. package/utils-studio.js +3367 -0
  51. package/utils.d.ts +212 -0
  52. package/utils.js +52590 -11754
  53. package/loader.mjs +0 -57
@@ -0,0 +1,7 @@
1
+ import { AnyMySqlTable, MySqlSchema } from "drizzle-orm/mysql-core";
2
+ import { MySqlSchemaInternal } from "src/serializer/mysqlSchema";
3
+ import { Connection } from "mysql2/promise";
4
+ import { IntrospectStage, IntrospectStatus } from "src/cli/views";
5
+ export declare const indexName: (tableName: string, columns: string[]) => string;
6
+ export declare const generateMySqlSnapshot: (tables: AnyMySqlTable[], enums: any[], mysqlSchemas: MySqlSchema[]) => MySqlSchemaInternal;
7
+ export declare const fromDatabase: (db: Connection, inputSchema: string, tablesFilter?: (table: string) => boolean, progressCallback?: ((stage: IntrospectStage, count: number, status: IntrospectStatus) => void) | undefined) => Promise<MySqlSchemaInternal>;
@@ -0,0 +1,11 @@
1
+ import { PgSchema, PgEnum, AnyPgTable } from "drizzle-orm/pg-core";
2
+ export declare const prepareFromExports: (exports: Record<string, unknown>) => {
3
+ tables: AnyPgTable<{}>[];
4
+ enums: PgEnum<any>[];
5
+ schemas: PgSchema<string>[];
6
+ };
7
+ export declare const prepareFromPgImports: (imports: string[]) => Promise<{
8
+ tables: AnyPgTable<{}>[];
9
+ enums: PgEnum<any>[];
10
+ schemas: PgSchema<string>[];
11
+ }>;