drizzle-kit 0.20.18-d190692 → 0.20.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/@types/utils.d.ts +12 -0
  2. package/bin.cjs +55769 -103683
  3. package/cli/commands/migrate.d.ts +270 -0
  4. package/cli/commands/mysqlIntrospect.d.ts +119 -0
  5. package/cli/commands/mysqlPushUtils.d.ts +18 -0
  6. package/cli/commands/mysqlUp.d.ts +4 -0
  7. package/cli/commands/pgConnect.d.ts +5 -0
  8. package/cli/commands/pgIntrospect.d.ts +123 -0
  9. package/cli/commands/pgPushUtils.d.ts +14 -0
  10. package/cli/commands/pgUp.d.ts +4 -0
  11. package/cli/commands/sqliteIntrospect.d.ts +107 -0
  12. package/cli/commands/sqlitePushUtils.d.ts +21 -0
  13. package/cli/commands/sqliteUtils.d.ts +162 -0
  14. package/cli/commands/upFolders.d.ts +27 -0
  15. package/cli/commands/utils.d.ts +274 -0
  16. package/cli/selector-ui.d.ts +13 -0
  17. package/cli/validations/common.d.ts +13 -0
  18. package/cli/validations/mysql.d.ts +365 -0
  19. package/cli/validations/outputs.d.ts +40 -0
  20. package/cli/validations/pg.d.ts +438 -0
  21. package/cli/views.d.ts +61 -0
  22. package/drivers/index.d.ts +39 -0
  23. package/global.d.ts +4 -0
  24. package/index.d.mts +68 -46
  25. package/index.d.ts +68 -46
  26. package/index.js +0 -1
  27. package/introspect-mysql.d.ts +9 -0
  28. package/introspect-pg.d.ts +12 -0
  29. package/introspect-sqlite.d.ts +10 -0
  30. package/jsonDiffer.d.ts +76 -0
  31. package/jsonStatements.d.ts +349 -0
  32. package/migrationPreparator.d.ts +35 -0
  33. package/package.json +64 -31
  34. package/payload.d.mts +18 -1052
  35. package/payload.d.ts +18 -1052
  36. package/payload.js +33563 -19279
  37. package/payload.mjs +33457 -19180
  38. package/schemaValidator.d.ts +1313 -0
  39. package/serializer/index.d.ts +9 -0
  40. package/serializer/mysqlImports.d.ts +11 -0
  41. package/serializer/mysqlSchema.d.ts +3833 -0
  42. package/serializer/mysqlSerializer.d.ts +7 -0
  43. package/serializer/pgImports.d.ts +11 -0
  44. package/serializer/pgSchema.d.ts +4333 -0
  45. package/serializer/pgSerializer.d.ts +7 -0
  46. package/serializer/schemaToDrizzle.d.ts +7 -0
  47. package/serializer/sqliteImports.d.ts +9 -0
  48. package/serializer/sqliteSchema.d.ts +3227 -0
  49. package/serializer/sqliteSerializer.d.ts +6 -0
  50. package/snapshotsDiffer.d.ts +2660 -0
  51. package/sqlgenerator.d.ts +33 -0
  52. package/utils/words.d.ts +7 -0
  53. package/utils-studio.d.mts +5 -0
  54. package/utils-studio.d.ts +5 -0
  55. package/utils-studio.js +809 -4584
  56. package/utils-studio.mjs +793 -4565
  57. package/utils.d.ts +199 -0
  58. package/utils.js +7165 -4635
  59. package/utils.mjs +7125 -4595
@@ -0,0 +1,33 @@
1
+ import { JsonCreateIndexStatement, JsonDropIndexStatement, JsonDropTableStatement, JsonRenameTableStatement, JsonSqliteAddColumnStatement, JsonSqliteCreateTableStatement, JsonStatement } from "./jsonStatements";
2
+ import { Dialect } from "./schemaValidator";
3
+ export declare const pgNativeTypes: Set<string>;
4
+ declare abstract class Convertor {
5
+ abstract can(statement: JsonStatement, dialect: Dialect): boolean;
6
+ abstract convert(statement: JsonStatement): string;
7
+ }
8
+ export declare class SQLiteCreateTableConvertor extends Convertor {
9
+ can(statement: JsonStatement, dialect: Dialect): boolean;
10
+ convert(st: JsonSqliteCreateTableStatement): string;
11
+ }
12
+ export declare class SQLiteDropTableConvertor extends Convertor {
13
+ can(statement: JsonStatement, dialect: Dialect): boolean;
14
+ convert(statement: JsonDropTableStatement): string;
15
+ }
16
+ export declare class SqliteRenameTableConvertor extends Convertor {
17
+ can(statement: JsonStatement, dialect: Dialect): boolean;
18
+ convert(statement: JsonRenameTableStatement): string;
19
+ }
20
+ export declare class SQLiteAlterTableAddColumnConvertor extends Convertor {
21
+ can(statement: JsonStatement, dialect: Dialect): boolean;
22
+ convert(statement: JsonSqliteAddColumnStatement): string;
23
+ }
24
+ export declare class CreateSqliteIndexConvertor extends Convertor {
25
+ can(statement: JsonStatement, dialect: Dialect): boolean;
26
+ convert(statement: JsonCreateIndexStatement): string;
27
+ }
28
+ export declare class SqliteDropIndexConvertor extends Convertor {
29
+ can(statement: JsonStatement, dialect: Dialect): boolean;
30
+ convert(statement: JsonDropIndexStatement): string;
31
+ }
32
+ export declare const fromJson: (statements: JsonStatement[], dialect: Dialect) => string[];
33
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const prepareMigrationMetadata: (idx: number) => {
2
+ prefix: string;
3
+ suffix: string;
4
+ tag: string;
5
+ };
6
+ export declare const adjectives: string[];
7
+ export declare const heroes: string[];
@@ -0,0 +1,5 @@
1
+ export { pgSchemaToDrizzle as drizzleSchemaPg } from "./serializer/schemaToDrizzle";
2
+ export { sqliteSchemaToDrizzle as drizzleSchemaSQLite } from "./serializer/schemaToDrizzle";
3
+ export { sqlitePushIntrospect } from "./cli/commands/sqliteIntrospect";
4
+ export { pgPushIntrospect } from "./cli/commands/pgIntrospect";
5
+ export { DrizzleORMPgClient, TursoSqlite } from "./drivers";
@@ -0,0 +1,5 @@
1
+ export { pgSchemaToDrizzle as drizzleSchemaPg } from "./serializer/schemaToDrizzle";
2
+ export { sqliteSchemaToDrizzle as drizzleSchemaSQLite } from "./serializer/schemaToDrizzle";
3
+ export { sqlitePushIntrospect } from "./cli/commands/sqliteIntrospect";
4
+ export { pgPushIntrospect } from "./cli/commands/pgIntrospect";
5
+ export { DrizzleORMPgClient, TursoSqlite } from "./drivers";