drizzle-kit 0.20.17-9f0ea64 → 0.20.17-a1c0ab3

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/bin.cjs +71994 -35815
  2. package/index.d.mts +35 -65
  3. package/index.d.ts +35 -65
  4. package/package.json +8 -16
  5. package/payload.d.mts +1052 -18
  6. package/payload.d.ts +1052 -18
  7. package/payload.js +18757 -34176
  8. package/payload.mjs +17495 -32894
  9. package/utils-studio.js +1039 -3348
  10. package/utils-studio.mjs +1012 -3321
  11. package/utils.js +864 -223
  12. package/utils.mjs +839 -198
  13. package/@types/utils.d.ts +0 -12
  14. package/cli/commands/migrate.d.ts +0 -287
  15. package/cli/commands/mysqlIntrospect.d.ts +0 -55
  16. package/cli/commands/mysqlPushUtils.d.ts +0 -14
  17. package/cli/commands/pgIntrospect.d.ts +0 -59
  18. package/cli/commands/pgPushUtils.d.ts +0 -11
  19. package/cli/commands/sqliteIntrospect.d.ts +0 -104
  20. package/cli/commands/sqlitePushUtils.d.ts +0 -15
  21. package/cli/commands/utils.d.ts +0 -58
  22. package/cli/selector-ui.d.ts +0 -13
  23. package/cli/utils.d.ts +0 -13
  24. package/cli/validations/cli.d.ts +0 -169
  25. package/cli/validations/common.d.ts +0 -214
  26. package/cli/validations/mysql.d.ts +0 -35
  27. package/cli/validations/outputs.d.ts +0 -41
  28. package/cli/validations/pg.d.ts +0 -31
  29. package/cli/validations/sqlite.d.ts +0 -34
  30. package/cli/views.d.ts +0 -63
  31. package/global.d.ts +0 -6
  32. package/introspect-sqlite.d.ts +0 -10
  33. package/jsonDiffer.d.ts +0 -61
  34. package/jsonStatements.d.ts +0 -376
  35. package/migrationPreparator.d.ts +0 -35
  36. package/schemaValidator.d.ts +0 -1316
  37. package/serializer/index.d.ts +0 -9
  38. package/serializer/mysqlImports.d.ts +0 -7
  39. package/serializer/mysqlSchema.d.ts +0 -4650
  40. package/serializer/mysqlSerializer.d.ts +0 -7
  41. package/serializer/pgImports.d.ts +0 -11
  42. package/serializer/pgSchema.d.ts +0 -4792
  43. package/serializer/pgSerializer.d.ts +0 -7
  44. package/serializer/schemaToDrizzle.d.ts +0 -7
  45. package/serializer/sqliteImports.d.ts +0 -7
  46. package/serializer/sqliteSchema.d.ts +0 -2801
  47. package/serializer/sqliteSerializer.d.ts +0 -6
  48. package/snapshotsDiffer.d.ts +0 -3937
  49. package/sqlgenerator.d.ts +0 -33
  50. package/utils/words.d.ts +0 -7
  51. package/utils-studio.d.mts +0 -4
  52. package/utils-studio.d.ts +0 -4
  53. package/utils.d.ts +0 -72
package/@types/utils.d.ts DELETED
@@ -1,12 +0,0 @@
1
- declare global {
2
- interface String {
3
- trimChar(char: string): string;
4
- squashSpaces(): string;
5
- camelCase(): string;
6
- concatIf(it: string, condition: boolean): string;
7
- }
8
- interface Array<T> {
9
- random(): T;
10
- }
11
- }
12
- export {};
@@ -1,287 +0,0 @@
1
- import { Column, ColumnsResolverInput, ColumnsResolverOutput, Enum, ResolverInput, ResolverOutput, ResolverOutputWithMoved, Table } from "../../snapshotsDiffer";
2
- import type { CommonSchema } from "../../schemaValidator";
3
- import { PgSchema } from "../../serializer/pgSchema";
4
- import { SQLiteSchema } from "../../serializer/sqliteSchema";
5
- import { MySqlSchema } from "../../serializer/mysqlSchema";
6
- import { Journal } from "../../utils";
7
- import { GenerateConfig } from "./utils";
8
- export type Named = {
9
- name: string;
10
- };
11
- export type NamedWithSchema = {
12
- name: string;
13
- schema: string;
14
- };
15
- export declare const schemasResolver: (input: ResolverInput<Table>) => Promise<ResolverOutput<Table>>;
16
- export declare const tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>;
17
- export declare const enumsResolver: (input: ResolverInput<Enum>) => Promise<ResolverOutputWithMoved<Enum>>;
18
- export declare const columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>;
19
- export declare const prepareAndMigratePg: (config: GenerateConfig) => Promise<void>;
20
- export declare const preparePgPush: (schemaPath: string | string[], snapshot: PgSchema, schemaFilter: string[]) => Promise<{
21
- sqlStatements: string[];
22
- statements: import("../../jsonStatements").JsonStatement[];
23
- squashedPrev: {
24
- tables: Record<string, {
25
- name: string;
26
- columns: Record<string, {
27
- isUnique?: any;
28
- default?: any;
29
- typeSchema?: string | undefined;
30
- uniqueName?: string | undefined;
31
- nullsNotDistinct?: boolean | undefined;
32
- name: string;
33
- type: string;
34
- primaryKey: boolean;
35
- notNull: boolean;
36
- }>;
37
- indexes: Record<string, string>;
38
- foreignKeys: Record<string, string>;
39
- schema: string;
40
- compositePrimaryKeys: Record<string, string>;
41
- uniqueConstraints: Record<string, string>;
42
- }>;
43
- version: "6";
44
- dialect: "pg";
45
- schemas: Record<string, string>;
46
- enums: Record<string, {
47
- name: string;
48
- values: string[];
49
- schema: string;
50
- }>;
51
- };
52
- squashedCur: {
53
- tables: Record<string, {
54
- name: string;
55
- columns: Record<string, {
56
- isUnique?: any;
57
- default?: any;
58
- typeSchema?: string | undefined;
59
- uniqueName?: string | undefined;
60
- nullsNotDistinct?: boolean | undefined;
61
- name: string;
62
- type: string;
63
- primaryKey: boolean;
64
- notNull: boolean;
65
- }>;
66
- indexes: Record<string, string>;
67
- foreignKeys: Record<string, string>;
68
- schema: string;
69
- compositePrimaryKeys: Record<string, string>;
70
- uniqueConstraints: Record<string, string>;
71
- }>;
72
- version: "6";
73
- dialect: "pg";
74
- schemas: Record<string, string>;
75
- enums: Record<string, {
76
- name: string;
77
- values: string[];
78
- schema: string;
79
- }>;
80
- };
81
- }>;
82
- export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot: MySqlSchema) => Promise<{
83
- sqlStatements: string[];
84
- statements: import("../../jsonStatements").JsonStatement[];
85
- validatedCur: {
86
- internal?: {
87
- tables: Record<string, {
88
- columns: Record<string, {
89
- isDefaultAnExpression?: boolean | undefined;
90
- } | undefined>;
91
- } | undefined>;
92
- } | undefined;
93
- tables: Record<string, {
94
- name: string;
95
- columns: Record<string, {
96
- default?: any;
97
- onUpdate?: any;
98
- autoincrement?: boolean | undefined;
99
- name: string;
100
- type: string;
101
- primaryKey: boolean;
102
- notNull: boolean;
103
- }>;
104
- indexes: Record<string, {
105
- using?: "btree" | "hash" | undefined;
106
- algorithm?: "default" | "inplace" | "copy" | undefined;
107
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
108
- name: string;
109
- columns: string[];
110
- isUnique: boolean;
111
- }>;
112
- foreignKeys: Record<string, {
113
- onUpdate?: string | undefined;
114
- onDelete?: string | undefined;
115
- name: string;
116
- tableFrom: string;
117
- columnsFrom: string[];
118
- tableTo: string;
119
- columnsTo: string[];
120
- }>;
121
- compositePrimaryKeys: Record<string, {
122
- name: string;
123
- columns: string[];
124
- }>;
125
- uniqueConstraints: Record<string, {
126
- name: string;
127
- columns: string[];
128
- }>;
129
- }>;
130
- id: string;
131
- prevId: string;
132
- version: "5";
133
- dialect: "mysql";
134
- _meta: {
135
- columns: Record<string, string>;
136
- tables: Record<string, string>;
137
- };
138
- };
139
- validatedPrev: {
140
- internal?: {
141
- tables: Record<string, {
142
- columns: Record<string, {
143
- isDefaultAnExpression?: boolean | undefined;
144
- } | undefined>;
145
- } | undefined>;
146
- } | undefined;
147
- tables: Record<string, {
148
- name: string;
149
- columns: Record<string, {
150
- default?: any;
151
- onUpdate?: any;
152
- autoincrement?: boolean | undefined;
153
- name: string;
154
- type: string;
155
- primaryKey: boolean;
156
- notNull: boolean;
157
- }>;
158
- indexes: Record<string, {
159
- using?: "btree" | "hash" | undefined;
160
- algorithm?: "default" | "inplace" | "copy" | undefined;
161
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
162
- name: string;
163
- columns: string[];
164
- isUnique: boolean;
165
- }>;
166
- foreignKeys: Record<string, {
167
- onUpdate?: string | undefined;
168
- onDelete?: string | undefined;
169
- name: string;
170
- tableFrom: string;
171
- columnsFrom: string[];
172
- tableTo: string;
173
- columnsTo: string[];
174
- }>;
175
- compositePrimaryKeys: Record<string, {
176
- name: string;
177
- columns: string[];
178
- }>;
179
- uniqueConstraints: Record<string, {
180
- name: string;
181
- columns: string[];
182
- }>;
183
- }>;
184
- id: string;
185
- prevId: string;
186
- version: "5";
187
- dialect: "mysql";
188
- _meta: {
189
- columns: Record<string, string>;
190
- tables: Record<string, string>;
191
- };
192
- };
193
- }>;
194
- export declare const prepareAndMigrateMysql: (config: GenerateConfig) => Promise<void>;
195
- export declare const prepareAndMigrateSqlite: (config: GenerateConfig) => Promise<void>;
196
- export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot: SQLiteSchema) => Promise<{
197
- sqlStatements: string[];
198
- statements: import("../../jsonStatements").JsonStatement[];
199
- squashedPrev: {
200
- enums?: any;
201
- tables: Record<string, {
202
- name: string;
203
- columns: Record<string, {
204
- default?: any;
205
- autoincrement?: boolean | undefined;
206
- name: string;
207
- type: string;
208
- primaryKey: boolean;
209
- notNull: boolean;
210
- }>;
211
- indexes: Record<string, string>;
212
- foreignKeys: Record<string, string>;
213
- compositePrimaryKeys: Record<string, string>;
214
- uniqueConstraints: Record<string, string>;
215
- }>;
216
- version: "5";
217
- dialect: "sqlite";
218
- };
219
- squashedCur: {
220
- enums?: any;
221
- tables: Record<string, {
222
- name: string;
223
- columns: Record<string, {
224
- default?: any;
225
- autoincrement?: boolean | undefined;
226
- name: string;
227
- type: string;
228
- primaryKey: boolean;
229
- notNull: boolean;
230
- }>;
231
- indexes: Record<string, string>;
232
- foreignKeys: Record<string, string>;
233
- compositePrimaryKeys: Record<string, string>;
234
- uniqueConstraints: Record<string, string>;
235
- }>;
236
- version: "5";
237
- dialect: "sqlite";
238
- };
239
- meta: {
240
- schemas: {};
241
- tables: {};
242
- columns: {};
243
- } | undefined;
244
- }>;
245
- export declare const promptColumnsConflicts: <T extends Named>(tableName: string, newColumns: T[], missingColumns: T[]) => Promise<{
246
- created: T[];
247
- renamed: {
248
- from: T;
249
- to: T;
250
- }[];
251
- deleted: T[];
252
- }>;
253
- export declare const promptNamedWithSchemasConflict: <T extends NamedWithSchema>(newItems: T[], missingItems: T[], entity: "table" | "enum") => Promise<{
254
- created: T[];
255
- renamed: {
256
- from: T;
257
- to: T;
258
- }[];
259
- moved: {
260
- name: string;
261
- schemaFrom: string;
262
- schemaTo: string;
263
- }[];
264
- deleted: T[];
265
- }>;
266
- export declare const promptSchemasConflict: <T extends Named>(newSchemas: T[], missingSchemas: T[]) => Promise<{
267
- created: T[];
268
- renamed: {
269
- from: T;
270
- to: T;
271
- }[];
272
- deleted: T[];
273
- }>;
274
- export declare const BREAKPOINT = "--> statement-breakpoint\n";
275
- export declare const writeResult: ({ cur, sqlStatements, journal, _meta, outFolder, breakpoints, name, bundle, type, }: {
276
- cur: CommonSchema;
277
- sqlStatements: string[];
278
- journal: Journal;
279
- _meta?: any;
280
- outFolder: string;
281
- breakpoints: boolean;
282
- name?: string;
283
- bundle?: boolean;
284
- type?: "introspect" | "custom" | "none";
285
- }) => void;
286
- export declare const embeddedMigrations: (journal: Journal) => string;
287
- export declare const prepareSnapshotFolderName: () => string;
@@ -1,55 +0,0 @@
1
- import type { MysqlCredentials } from "../validations/mysql";
2
- import type { DB } from "../../utils";
3
- export declare const connectToMySQL: (credentials: MysqlCredentials) => Promise<{
4
- db: DB;
5
- database: string;
6
- }>;
7
- export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters: string[]) => Promise<{
8
- schema: {
9
- tables: Record<string, {
10
- name: string;
11
- columns: Record<string, {
12
- default?: any;
13
- onUpdate?: any;
14
- autoincrement?: boolean | undefined;
15
- name: string;
16
- type: string;
17
- primaryKey: boolean;
18
- notNull: boolean;
19
- }>;
20
- indexes: Record<string, {
21
- using?: "btree" | "hash" | undefined;
22
- algorithm?: "default" | "inplace" | "copy" | undefined;
23
- lock?: "default" | "none" | "shared" | "exclusive" | undefined;
24
- name: string;
25
- columns: string[];
26
- isUnique: boolean;
27
- }>;
28
- foreignKeys: Record<string, {
29
- onUpdate?: string | undefined;
30
- onDelete?: string | undefined;
31
- name: string;
32
- tableFrom: string;
33
- columnsFrom: string[];
34
- tableTo: string;
35
- columnsTo: string[];
36
- }>;
37
- compositePrimaryKeys: Record<string, {
38
- name: string;
39
- columns: string[];
40
- }>;
41
- uniqueConstraints: Record<string, {
42
- name: string;
43
- columns: string[];
44
- }>;
45
- }>;
46
- id: string;
47
- prevId: string;
48
- version: "5";
49
- dialect: "mysql";
50
- _meta: {
51
- columns: Record<string, string>;
52
- tables: Record<string, string>;
53
- };
54
- };
55
- }>;
@@ -1,14 +0,0 @@
1
- import { JsonStatement } from "../../jsonStatements";
2
- import { mysqlSchema } from "../../serializer/mysqlSchema";
3
- import { TypeOf } from "zod";
4
- import type { DB } from "../../utils";
5
- export declare const filterStatements: (statements: JsonStatement[], currentSchema: TypeOf<typeof mysqlSchema>, prevSchema: TypeOf<typeof mysqlSchema>) => JsonStatement[];
6
- export declare const logSuggestionsAndReturn: (db: DB, statements: JsonStatement[], json2: TypeOf<typeof mysqlSchema>) => Promise<{
7
- statementsToExecute: string[];
8
- shouldAskForApprove: boolean;
9
- infoToPrint: string[];
10
- columnsToRemove: string[];
11
- schemasToRemove: string[];
12
- tablesToTruncate: string[];
13
- tablesToRemove: string[];
14
- }>;
@@ -1,59 +0,0 @@
1
- import type { DB } from "../../utils";
2
- export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters: string[]) => Promise<{
3
- schema: {
4
- tables: Record<string, {
5
- name: string;
6
- columns: Record<string, {
7
- isUnique?: any;
8
- default?: any;
9
- typeSchema?: string | undefined;
10
- uniqueName?: string | undefined;
11
- nullsNotDistinct?: boolean | undefined;
12
- name: string;
13
- type: string;
14
- primaryKey: boolean;
15
- notNull: boolean;
16
- }>;
17
- indexes: Record<string, {
18
- name: string;
19
- columns: string[];
20
- isUnique: boolean;
21
- }>;
22
- foreignKeys: Record<string, {
23
- onUpdate?: string | undefined;
24
- onDelete?: string | undefined;
25
- schemaTo?: string | undefined;
26
- name: string;
27
- tableFrom: string;
28
- columnsFrom: string[];
29
- tableTo: string;
30
- columnsTo: string[];
31
- }>;
32
- schema: string;
33
- compositePrimaryKeys: Record<string, {
34
- name: string;
35
- columns: string[];
36
- }>;
37
- uniqueConstraints: Record<string, {
38
- name: string;
39
- columns: string[];
40
- nullsNotDistinct: boolean;
41
- }>;
42
- }>;
43
- id: string;
44
- prevId: string;
45
- version: "6";
46
- dialect: "pg";
47
- schemas: Record<string, string>;
48
- _meta: {
49
- columns: Record<string, string>;
50
- tables: Record<string, string>;
51
- schemas: Record<string, string>;
52
- };
53
- enums: Record<string, {
54
- name: string;
55
- values: string[];
56
- schema: string;
57
- }>;
58
- };
59
- }>;
@@ -1,11 +0,0 @@
1
- import type { DB } from "../../utils";
2
- import type { JsonStatement } from "../../jsonStatements";
3
- export declare const pgSuggestions: (db: DB, statements: JsonStatement[]) => Promise<{
4
- statementsToExecute: string[];
5
- shouldAskForApprove: boolean;
6
- infoToPrint: string[];
7
- columnsToRemove: string[];
8
- schemasToRemove: string[];
9
- tablesToTruncate: string[];
10
- tablesToRemove: string[];
11
- }>;
@@ -1,104 +0,0 @@
1
- import type { SqliteCredentials } from "../validations/sqlite";
2
- import type { SQLiteDB } from "../../utils";
3
- import { Casing } from "../validations/common";
4
- export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB>;
5
- export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters: string[], casing: Casing) => Promise<{
6
- schema: {
7
- tables: Record<string, {
8
- name: string;
9
- columns: Record<string, {
10
- default?: any;
11
- autoincrement?: boolean | undefined;
12
- name: string;
13
- type: string;
14
- primaryKey: boolean;
15
- notNull: boolean;
16
- }>;
17
- indexes: Record<string, {
18
- where?: string | undefined;
19
- name: string;
20
- columns: string[];
21
- isUnique: boolean;
22
- }>;
23
- foreignKeys: Record<string, {
24
- onUpdate?: string | undefined;
25
- onDelete?: string | undefined;
26
- name: string;
27
- tableFrom: string;
28
- columnsFrom: string[];
29
- tableTo: string;
30
- columnsTo: string[];
31
- }>;
32
- compositePrimaryKeys: Record<string, {
33
- name?: string | undefined;
34
- columns: string[];
35
- }>;
36
- uniqueConstraints: Record<string, {
37
- name: string;
38
- columns: string[];
39
- }>;
40
- }>;
41
- id: string;
42
- prevId: string;
43
- version: "5";
44
- dialect: "sqlite";
45
- _meta: {
46
- columns: Record<string, string>;
47
- tables: Record<string, string>;
48
- };
49
- enums: {};
50
- };
51
- ts: {
52
- file: string;
53
- imports: string;
54
- decalrations: string;
55
- schemaEntry: string;
56
- };
57
- }>;
58
- export declare const sqlitePushIntrospect: (db: SQLiteDB, filters: string[]) => Promise<{
59
- schema: {
60
- tables: Record<string, {
61
- name: string;
62
- columns: Record<string, {
63
- default?: any;
64
- autoincrement?: boolean | undefined;
65
- name: string;
66
- type: string;
67
- primaryKey: boolean;
68
- notNull: boolean;
69
- }>;
70
- indexes: Record<string, {
71
- where?: string | undefined;
72
- name: string;
73
- columns: string[];
74
- isUnique: boolean;
75
- }>;
76
- foreignKeys: Record<string, {
77
- onUpdate?: string | undefined;
78
- onDelete?: string | undefined;
79
- name: string;
80
- tableFrom: string;
81
- columnsFrom: string[];
82
- tableTo: string;
83
- columnsTo: string[];
84
- }>;
85
- compositePrimaryKeys: Record<string, {
86
- name?: string | undefined;
87
- columns: string[];
88
- }>;
89
- uniqueConstraints: Record<string, {
90
- name: string;
91
- columns: string[];
92
- }>;
93
- }>;
94
- id: string;
95
- prevId: string;
96
- version: "5";
97
- dialect: "sqlite";
98
- _meta: {
99
- columns: Record<string, string>;
100
- tables: Record<string, string>;
101
- };
102
- enums: {};
103
- };
104
- }>;
@@ -1,15 +0,0 @@
1
- import { SQLiteSchemaInternal, SQLiteSchemaSquashed } from "../../serializer/sqliteSchema";
2
- import type { JsonStatement } from "../../jsonStatements";
3
- import type { DB } from "../../utils";
4
- export declare const _moveDataStatements: (tableName: string, json: SQLiteSchemaSquashed, dataLoss?: boolean) => string[];
5
- export declare const getOldTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
6
- export declare const getNewTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
7
- export declare const logSuggestionsAndReturn: (connection: DB, statements: JsonStatement[], json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, meta: SQLiteSchemaInternal["_meta"]) => Promise<{
8
- statementsToExecute: string[];
9
- shouldAskForApprove: boolean;
10
- infoToPrint: string[];
11
- columnsToRemove: string[];
12
- schemasToRemove: string[];
13
- tablesToTruncate: string[];
14
- tablesToRemove: string[];
15
- }>;
@@ -1,58 +0,0 @@
1
- import { MysqlCredentials } from "../validations/mysql";
2
- import { PostgresCredentials } from "../validations/pg";
3
- import { SqliteCredentials } from "../validations/sqlite";
4
- import { Casing, CliConfig } from "../validations/common";
5
- import type { Dialect } from "../../schemaValidator";
6
- import { CliCheckConfig, CliConfigGenerate } from "../validations/cli";
7
- export declare const safeRegister: () => Promise<{
8
- unregister: () => void;
9
- }>;
10
- export type GenerateConfig = {
11
- dialect: Dialect;
12
- schema: string | string[];
13
- out: string;
14
- breakpoints: boolean;
15
- name?: string;
16
- custom: boolean;
17
- bundle: boolean;
18
- };
19
- export declare const prepareGenerateConfig: (options: CliConfigGenerate) => Promise<GenerateConfig>;
20
- export declare const flattenDatabaseCredentials: (config: any) => any;
21
- export declare const preparePushConfig: (options: Record<string, unknown>) => Promise<({
22
- dialect: "mysql";
23
- credentials: MysqlCredentials;
24
- } | {
25
- dialect: "pg";
26
- credentials: PostgresCredentials;
27
- } | {
28
- dialect: "sqlite";
29
- credentials: SqliteCredentials;
30
- }) & {
31
- schemaPath: string | string[];
32
- verbose: boolean;
33
- strict: boolean;
34
- tablesFilter: string[];
35
- schemasFilter: string[];
36
- }>;
37
- export declare const preparePullConfig: (options: Record<string, unknown>) => Promise<({
38
- dialect: "mysql";
39
- credentials: MysqlCredentials;
40
- } | {
41
- dialect: "pg";
42
- credentials: PostgresCredentials;
43
- } | {
44
- dialect: "sqlite";
45
- credentials: SqliteCredentials;
46
- }) & {
47
- out: string;
48
- breakpoints: boolean;
49
- casing: Casing;
50
- tablesFilter: string[];
51
- schemasFilter: string[];
52
- }>;
53
- export declare const assertOutFolder: (it: CliCheckConfig) => Promise<{
54
- out: string;
55
- dialect: Dialect;
56
- }>;
57
- export declare const drizzleConfigFromFile: (configPath?: string) => Promise<CliConfig>;
58
- export declare const readDrizzleConfig: (configPath?: string) => Promise<any>;
@@ -1,13 +0,0 @@
1
- import { Prompt } from "hanji";
2
- export declare class Select extends Prompt<{
3
- index: number;
4
- value: string;
5
- }> {
6
- private readonly data;
7
- constructor(items: string[]);
8
- render(status: "idle" | "submitted" | "aborted"): string;
9
- result(): {
10
- index: number;
11
- value: string;
12
- };
13
- }
package/cli/utils.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export declare const assertExists: (it?: any) => void;
2
- export declare const assertStudioNodeVersion: () => void;
3
- export declare const checkPackage: (it: string) => Promise<boolean>;
4
- export declare const assertPackages: (...pkgs: string[]) => Promise<void>;
5
- export declare const assertEitherPackage: (...pkgs: string[]) => Promise<string[]>;
6
- export declare const assertOrmCoreVersion: () => Promise<void>;
7
- export declare const ormCoreVersions: () => Promise<{
8
- compatibilityVersion: number;
9
- npmVersion: string;
10
- } | {
11
- compatibilityVersion?: undefined;
12
- npmVersion?: undefined;
13
- }>;