drizzle-kit 0.20.14-1ebe0ff → 0.20.14-1f99bf7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/bin.cjs +46606 -46728
  2. package/cli/commands/migrate.d.ts +24 -24
  3. package/cli/commands/mysqlIntrospect.d.ts +119 -0
  4. package/cli/commands/mysqlPushUtils.d.ts +18 -0
  5. package/cli/commands/mysqlUp.d.ts +2 -2
  6. package/cli/commands/pgConnect.d.ts +1 -1
  7. package/cli/commands/pgIntrospect.d.ts +9 -9
  8. package/cli/commands/pgPushUtils.d.ts +2 -2
  9. package/cli/commands/pgUp.d.ts +2 -2
  10. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  11. package/cli/commands/sqlitePushUtils.d.ts +21 -0
  12. package/cli/commands/upFolders.d.ts +1 -1
  13. package/cli/commands/utils.d.ts +14 -259
  14. package/cli/validations/cli.d.ts +104 -0
  15. package/cli/validations/common.d.ts +205 -7
  16. package/cli/validations/mysql.d.ts +6 -1
  17. package/cli/validations/pg.d.ts +6 -1
  18. package/cli/validations/sqlite.d.ts +165 -3
  19. package/cli/views.d.ts +1 -1
  20. package/drivers/index.d.ts +14 -0
  21. package/global.d.ts +2 -1
  22. package/index.d.mts +8 -6
  23. package/index.d.ts +8 -6
  24. package/index.js +1 -0
  25. package/introspect-mysql.d.ts +9 -0
  26. package/introspect-pg.d.ts +1 -1
  27. package/introspect-sqlite.d.ts +1 -1
  28. package/jsonStatements.d.ts +1 -1
  29. package/package.json +17 -4
  30. package/payload.d.mts +33 -0
  31. package/payload.d.ts +33 -0
  32. package/payload.js +37106 -0
  33. package/payload.mjs +37124 -0
  34. package/schemaValidator.d.ts +40 -40
  35. package/serializer/mysqlImports.d.ts +5 -0
  36. package/serializer/mysqlSchema.d.ts +1991 -753
  37. package/serializer/mysqlSerializer.d.ts +4 -4
  38. package/serializer/pgSchema.d.ts +1113 -788
  39. package/serializer/sqliteImports.d.ts +4 -0
  40. package/serializer/sqliteSchema.d.ts +144 -570
  41. package/serializer/sqliteSerializer.d.ts +2 -2
  42. package/snapshotsDiffer.d.ts +24 -20
  43. package/utils-studio.js +21 -8
  44. package/utils-studio.mjs +20 -8
  45. package/utils.d.ts +13 -27
  46. package/utils.js +3080 -54201
  47. package/utils.mjs +8175 -0
  48. package/cli/commands/sqliteUtils.d.ts +0 -162
  49. package/cli/utils.d.ts +0 -12
  50. package/cli/validations/studio.d.ts +0 -593
  51. package/orm-extenstions/d1-driver/driver.d.ts +0 -8
  52. package/orm-extenstions/d1-driver/session.d.ts +0 -51
  53. package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
  54. package/serializer/studioUtils.d.ts +0 -65
@@ -1,65 +0,0 @@
1
- import type { Setup } from "@drizzle-team/studio";
2
- import { Relations } from "drizzle-orm";
3
- import { AnyMySqlTable } from "drizzle-orm/mysql-core";
4
- import { AnyPgTable } from "drizzle-orm/pg-core";
5
- import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
6
- import { MySQLConnectionConfig } from "src/cli/validations/mysql";
7
- import { PgConnectionConfig } from "src/cli/validations/pg";
8
- import { StudioConfigConnections, StudioSqliteConnectionConfig as StudioSQLiteConnectionConfig } from "src/cli/validations/studio";
9
- export declare const preparePgSchema: (path: string | string[]) => Promise<{
10
- schema: Record<string, Record<string, AnyPgTable<{}>>>;
11
- relations: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
12
- }>;
13
- export declare const prepareMySqlSchema: (path: string | string[]) => Promise<{
14
- schema: Record<string, Record<string, AnyMySqlTable<{}>>>;
15
- relations: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
16
- }>;
17
- export declare const prepareSQLiteSchema: (path: string | string[]) => Promise<{
18
- schema: Record<string, Record<string, AnySQLiteTable<{}>>>;
19
- relations: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
20
- }>;
21
- export declare const prepareModels: (path: string | string[]) => Promise<{
22
- pgSchema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
23
- mysqlSchema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
24
- sqliteSchema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>>;
25
- }>;
26
- export declare const drizzleForPostgres: (connectionConfig: PgConnectionConfig, pgSchema: Record<string, Record<string, AnyPgTable>>, relations: Record<string, Relations>, ts: {
27
- imports: string;
28
- declarations: string;
29
- schemaEntry: string;
30
- }, verbose: boolean) => Promise<Setup>;
31
- export declare const drizzleForMySQL: (config: MySQLConnectionConfig, mysqlSchema: Record<string, Record<string, AnyMySqlTable>>, relations: Record<string, Relations>, ts: {
32
- imports: string;
33
- declarations: string;
34
- schemaEntry: string;
35
- }, verbose: boolean) => Promise<Setup>;
36
- export declare const drizzleForSQLite: (config: StudioSQLiteConnectionConfig, sqliteSchema: Record<string, Record<string, AnySQLiteTable>>, relations: Record<string, Relations>, ts: {
37
- imports: string;
38
- declarations: string;
39
- schemaEntry: string;
40
- }, verbose: boolean) => Promise<Setup>;
41
- export declare const drizzleDb: (drizzleConfig: StudioConfigConnections, models: {
42
- pgSchema?: Record<string, AnyPgTable | Relations>;
43
- mysqlSchema?: Record<string, AnyMySqlTable | Relations>;
44
- sqliteSchema?: Record<string, AnySQLiteTable | Relations>;
45
- }, logger: boolean) => Promise<{
46
- db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
47
- type: "pg";
48
- schema: Record<string, AnyPgTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
49
- } | {
50
- db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
51
- type: "mysql";
52
- schema: Record<string, AnyMySqlTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
53
- } | {
54
- db: import("../orm-extenstions/d1-driver/driver").DrizzleD1WranglerDatabase<Record<string, never>>;
55
- type: "sqlite";
56
- schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
57
- } | {
58
- db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>>;
59
- type: "sqlite";
60
- schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
61
- } | {
62
- db: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>;
63
- type: "sqlite";
64
- schema: Record<string, AnySQLiteTable<{}> | Relations<string, Record<string, import("drizzle-orm").Relation<string>>>> | undefined;
65
- }>;