drizzle-kit 0.20.14-6ce9d1f → 0.20.14-730d763

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 +20593 -20020
  2. package/cli/commands/migrate.d.ts +114 -90
  3. package/cli/commands/mysqlIntrospect.d.ts +8 -14
  4. package/cli/commands/pgIntrospect.d.ts +17 -10
  5. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  6. package/cli/commands/utils.d.ts +8 -261
  7. package/cli/validations/cli.d.ts +107 -0
  8. package/cli/validations/common.d.ts +205 -7
  9. package/cli/validations/mysql.d.ts +6 -1
  10. package/cli/validations/pg.d.ts +6 -1
  11. package/cli/validations/sqlite.d.ts +165 -3
  12. package/cli/views.d.ts +6 -4
  13. package/global.d.ts +3 -1
  14. package/index.js +1 -0
  15. package/introspect-mysql.d.ts +1 -1
  16. package/introspect-pg.d.ts +5 -2
  17. package/introspect-sqlite.d.ts +1 -1
  18. package/jsonDiffer.d.ts +14 -29
  19. package/jsonStatements.d.ts +38 -11
  20. package/package.json +18 -50
  21. package/payload.js +8130 -8617
  22. package/payload.mjs +8252 -8745
  23. package/schemaValidator.d.ts +72 -69
  24. package/serializer/mysqlImports.d.ts +3 -7
  25. package/serializer/mysqlSchema.d.ts +1624 -493
  26. package/serializer/mysqlSerializer.d.ts +2 -2
  27. package/serializer/pgImports.d.ts +2 -2
  28. package/serializer/pgSchema.d.ts +1260 -801
  29. package/serializer/sqliteImports.d.ts +2 -4
  30. package/serializer/sqliteSchema.d.ts +144 -570
  31. package/serializer/sqliteSerializer.d.ts +1 -1
  32. package/snapshotsDiffer.d.ts +1908 -1050
  33. package/utils/words.d.ts +1 -1
  34. package/utils-studio.js +4144 -85
  35. package/utils-studio.mjs +4144 -85
  36. package/utils.d.ts +6 -140
  37. package/utils.js +3906 -7081
  38. package/utils.mjs +3983 -7158
  39. package/cli/commands/check.d.ts +0 -2
  40. package/cli/commands/drop.d.ts +0 -4
  41. package/cli/commands/mysqlUp.d.ts +0 -4
  42. package/cli/commands/pgUp.d.ts +0 -4
  43. package/cli/commands/push.d.ts +0 -6
  44. package/cli/commands/sqliteUp.d.ts +0 -2
  45. package/cli/commands/sqliteUtils.d.ts +0 -162
  46. package/cli/commands/upFolders.d.ts +0 -27
  47. package/cli/index.d.ts +0 -71
  48. package/cli/utils.d.ts +0 -12
  49. package/cli/validations/studio.d.ts +0 -593
  50. package/orm-extenstions/d1-driver/driver.d.ts +0 -8
  51. package/orm-extenstions/d1-driver/session.d.ts +0 -51
  52. package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
  53. package/serializer/studioUtils.d.ts +0 -65
  54. package/utils/certs.d.ts +0 -4
@@ -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 "../cli/validations/mysql";
7
- import { PgConnectionConfig } from "../cli/validations/pg";
8
- import { StudioConfigConnections, StudioSqliteConnectionConfig as StudioSQLiteConnectionConfig } from "../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, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>>;
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, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>> | undefined;
57
- } | {
58
- db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>>;
59
- type: "sqlite";
60
- schema: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>> | undefined;
61
- } | {
62
- db: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>;
63
- type: "sqlite";
64
- schema: Record<string, Relations<string, Record<string, import("drizzle-orm").Relation<string>>> | AnySQLiteTable<{}>> | undefined;
65
- }>;
package/utils/certs.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const certs: () => Promise<{
2
- key: string;
3
- cert: string;
4
- } | null>;