drizzle-kit 0.20.17-b4f119e → 0.20.17-c347d7b

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.
@@ -2,7 +2,7 @@ import { MysqlCredentials } from "../validations/mysql";
2
2
  import { PostgresCredentials } from "../validations/pg";
3
3
  import { SqliteCredentials } from "../validations/sqlite";
4
4
  import { Casing, CliConfig } from "../validations/common";
5
- import type { Dialect } from "../../schemaValidator";
5
+ import { type Dialect } from "../../schemaValidator";
6
6
  import { CliCheckConfig, CliConfigGenerate } from "../validations/cli";
7
7
  export declare const safeRegister: () => Promise<{
8
8
  unregister: () => void;
@@ -50,6 +50,128 @@ export declare const preparePullConfig: (options: Record<string, unknown>) => Pr
50
50
  tablesFilter: string[];
51
51
  schemasFilter: string[];
52
52
  }>;
53
+ export declare const prepareStudioConfig: (options: Record<string, unknown>) => Promise<{
54
+ dialect: "postgresql";
55
+ schema: string | string[];
56
+ host: string;
57
+ port: number;
58
+ credentials: {
59
+ host: string;
60
+ user: string;
61
+ database: string;
62
+ port?: number | undefined;
63
+ password?: string | undefined;
64
+ ssl?: boolean | undefined;
65
+ } | {
66
+ url: string;
67
+ } | {
68
+ database: string;
69
+ driver: "aws-data-api";
70
+ secretArn: string;
71
+ resourceArn: string;
72
+ };
73
+ } | {
74
+ dialect: "mysql";
75
+ schema: string | string[];
76
+ host: string;
77
+ port: number;
78
+ credentials: {
79
+ host: string;
80
+ user: string;
81
+ database: string;
82
+ port?: number | undefined;
83
+ password?: string | undefined;
84
+ } | {
85
+ url: string;
86
+ };
87
+ } | {
88
+ dialect: "sqlite";
89
+ schema: string | string[];
90
+ host: string;
91
+ port: number;
92
+ credentials: {
93
+ url: string;
94
+ driver: "turso";
95
+ authToken: string;
96
+ } | {
97
+ url: string;
98
+ };
99
+ }>;
100
+ export declare const migrateConfig: import("zod").ZodObject<{
101
+ dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
102
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
103
+ migrations: import("zod").ZodOptional<import("zod").ZodObject<{
104
+ table: import("zod").ZodOptional<import("zod").ZodString>;
105
+ schema: import("zod").ZodOptional<import("zod").ZodString>;
106
+ }, "strip", import("zod").ZodTypeAny, {
107
+ schema?: string | undefined;
108
+ table?: string | undefined;
109
+ }, {
110
+ schema?: string | undefined;
111
+ table?: string | undefined;
112
+ }>>;
113
+ }, "strip", import("zod").ZodTypeAny, {
114
+ dialect: "postgresql" | "mysql" | "sqlite";
115
+ out: string;
116
+ migrations?: {
117
+ schema?: string | undefined;
118
+ table?: string | undefined;
119
+ } | undefined;
120
+ }, {
121
+ dialect: "postgresql" | "mysql" | "sqlite";
122
+ out?: string | undefined;
123
+ migrations?: {
124
+ schema?: string | undefined;
125
+ table?: string | undefined;
126
+ } | undefined;
127
+ }>;
128
+ export declare const prepareMigrateConfig: (options: Record<string, unknown>) => Promise<{
129
+ dialect: "postgresql";
130
+ out: string;
131
+ credentials: {
132
+ host: string;
133
+ user: string;
134
+ database: string;
135
+ port?: number | undefined;
136
+ password?: string | undefined;
137
+ ssl?: boolean | undefined;
138
+ } | {
139
+ url: string;
140
+ } | {
141
+ database: string;
142
+ driver: "aws-data-api";
143
+ secretArn: string;
144
+ resourceArn: string;
145
+ };
146
+ schema: string | undefined;
147
+ table: string | undefined;
148
+ } | {
149
+ dialect: "mysql";
150
+ out: string;
151
+ credentials: {
152
+ host: string;
153
+ user: string;
154
+ database: string;
155
+ port?: number | undefined;
156
+ password?: string | undefined;
157
+ } | {
158
+ url: string;
159
+ };
160
+ schema: string | undefined;
161
+ table: string | undefined;
162
+ } | {
163
+ dialect: "sqlite";
164
+ out: string;
165
+ credentials: {
166
+ url: string;
167
+ driver: "turso";
168
+ authToken: string;
169
+ } | {
170
+ url: string;
171
+ };
172
+ schema: string | undefined;
173
+ table: string | undefined;
174
+ }>;
53
175
  export declare const assertOutFolder: (it: CliCheckConfig) => Promise<{
54
176
  out: string;
55
177
  dialect: Dialect;
@@ -1,13 +1,18 @@
1
1
  import type { DB, Proxy, SQLiteDB, SqliteProxy } from "../utils";
2
2
  import type { PostgresCredentials } from "./validations/pg";
3
3
  import type { MysqlCredentials } from "./validations/mysql";
4
- import { SqliteCredentials } from "./validations/sqlite";
4
+ import type { SqliteCredentials } from "./validations/sqlite";
5
+ import type { MigrationConfig } from "drizzle-orm/migrator";
5
6
  export declare const preparePostgresDB: (credentials: PostgresCredentials) => Promise<DB & {
6
7
  proxy: Proxy;
8
+ migrate: (config: string | MigrationConfig) => Promise<void>;
7
9
  }>;
8
10
  export declare const connectToMySQL: (it: MysqlCredentials) => Promise<{
9
11
  db: DB;
10
12
  proxy: Proxy;
11
13
  database: string;
14
+ migrate: (config: MigrationConfig) => Promise<void>;
15
+ }>;
16
+ export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy & {
17
+ migrate: (config: MigrationConfig) => Promise<void>;
12
18
  }>;
13
- export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy>;
@@ -13,13 +13,13 @@ export declare const cliConfigGenerate: import("zod").ZodObject<{
13
13
  breakpoints: boolean;
14
14
  name?: string | undefined;
15
15
  schema?: string | string[] | undefined;
16
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
16
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
17
17
  config?: string | undefined;
18
18
  }, {
19
19
  name?: string | undefined;
20
20
  custom?: boolean | undefined;
21
21
  schema?: string | string[] | undefined;
22
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
22
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
23
23
  config?: string | undefined;
24
24
  out?: string | undefined;
25
25
  breakpoints?: boolean | undefined;
@@ -29,7 +29,7 @@ export declare const pushParams: import("zod").ZodObject<{
29
29
  dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
30
30
  schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
31
31
  tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
32
- schemaFilters: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
32
+ schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
33
33
  driver: import("zod").ZodOptional<import("zod").ZodString>;
34
34
  connectionString: import("zod").ZodOptional<import("zod").ZodString>;
35
35
  uri: import("zod").ZodOptional<import("zod").ZodString>;
@@ -44,8 +44,8 @@ export declare const pushParams: import("zod").ZodObject<{
44
44
  verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
45
45
  strict: import("zod").ZodOptional<import("zod").ZodBoolean>;
46
46
  }, "strip", import("zod").ZodTypeAny, {
47
- dialect: "mysql" | "postgresql" | "sqlite";
48
- schemaFilters: string | string[];
47
+ dialect: "postgresql" | "mysql" | "sqlite";
48
+ schemaFilter: string | string[];
49
49
  strict?: boolean | undefined;
50
50
  schema?: string | string[] | undefined;
51
51
  url?: string | undefined;
@@ -62,7 +62,7 @@ export declare const pushParams: import("zod").ZodObject<{
62
62
  tablesFilter?: string | string[] | undefined;
63
63
  verbose?: boolean | undefined;
64
64
  }, {
65
- dialect: "mysql" | "postgresql" | "sqlite";
65
+ dialect: "postgresql" | "mysql" | "sqlite";
66
66
  strict?: boolean | undefined;
67
67
  schema?: string | string[] | undefined;
68
68
  url?: string | undefined;
@@ -77,8 +77,8 @@ export declare const pushParams: import("zod").ZodObject<{
77
77
  ssl?: string | undefined;
78
78
  authToken?: string | undefined;
79
79
  tablesFilter?: string | string[] | undefined;
80
+ schemaFilter?: string | string[] | undefined;
80
81
  verbose?: boolean | undefined;
81
- schemaFilters?: string | string[] | undefined;
82
82
  }>;
83
83
  export type PushParams = TypeOf<typeof pushParams>;
84
84
  export declare const pullParams: import("zod").ZodObject<{
@@ -100,54 +100,54 @@ export declare const pullParams: import("zod").ZodObject<{
100
100
  authToken: import("zod").ZodOptional<import("zod").ZodString>;
101
101
  introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
102
102
  breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
103
- }, "strip", import("zod").ZodTypeAny, {
104
- out: string;
105
- breakpoints: boolean;
106
- schemaFilter: string | string[];
107
- introspectCasing: "camel" | "preserve";
108
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
109
- url?: string | undefined;
110
- host?: string | undefined;
111
- port?: string | undefined;
112
- user?: string | undefined;
113
- password?: string | undefined;
114
- database?: string | undefined;
115
- uri?: string | undefined;
116
- driver?: string | undefined;
117
- connectionString?: string | undefined;
118
- ssl?: string | undefined;
119
- authToken?: string | undefined;
120
- config?: string | undefined;
121
- tablesFilter?: string | string[] | undefined;
122
- }, {
123
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
124
- url?: string | undefined;
125
- host?: string | undefined;
126
- port?: string | undefined;
127
- user?: string | undefined;
128
- password?: string | undefined;
129
- database?: string | undefined;
130
- uri?: string | undefined;
131
- driver?: string | undefined;
132
- connectionString?: string | undefined;
133
- ssl?: string | undefined;
134
- authToken?: string | undefined;
135
- config?: string | undefined;
136
- out?: string | undefined;
137
- breakpoints?: boolean | undefined;
138
- tablesFilter?: string | string[] | undefined;
139
- schemaFilter?: string | string[] | undefined;
140
- introspectCasing?: "camel" | "preserve" | undefined;
141
- }>;
103
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
104
+ config: import("zod").ZodOptional<import("zod").ZodString>;
105
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
106
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
107
+ tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
108
+ schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
109
+ driver: import("zod").ZodOptional<import("zod").ZodString>;
110
+ connectionString: import("zod").ZodOptional<import("zod").ZodString>;
111
+ uri: import("zod").ZodOptional<import("zod").ZodString>;
112
+ host: import("zod").ZodOptional<import("zod").ZodString>;
113
+ port: import("zod").ZodOptional<import("zod").ZodString>;
114
+ user: import("zod").ZodOptional<import("zod").ZodString>;
115
+ password: import("zod").ZodOptional<import("zod").ZodString>;
116
+ database: import("zod").ZodOptional<import("zod").ZodString>;
117
+ ssl: import("zod").ZodOptional<import("zod").ZodString>;
118
+ url: import("zod").ZodOptional<import("zod").ZodString>;
119
+ authToken: import("zod").ZodOptional<import("zod").ZodString>;
120
+ introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
121
+ breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
122
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
123
+ config: import("zod").ZodOptional<import("zod").ZodString>;
124
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
125
+ out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
126
+ tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
127
+ schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
128
+ driver: import("zod").ZodOptional<import("zod").ZodString>;
129
+ connectionString: import("zod").ZodOptional<import("zod").ZodString>;
130
+ uri: import("zod").ZodOptional<import("zod").ZodString>;
131
+ host: import("zod").ZodOptional<import("zod").ZodString>;
132
+ port: import("zod").ZodOptional<import("zod").ZodString>;
133
+ user: import("zod").ZodOptional<import("zod").ZodString>;
134
+ password: import("zod").ZodOptional<import("zod").ZodString>;
135
+ database: import("zod").ZodOptional<import("zod").ZodString>;
136
+ ssl: import("zod").ZodOptional<import("zod").ZodString>;
137
+ url: import("zod").ZodOptional<import("zod").ZodString>;
138
+ authToken: import("zod").ZodOptional<import("zod").ZodString>;
139
+ introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
140
+ breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
141
+ }, import("zod").ZodTypeAny, "passthrough">>;
142
142
  export type PullParams = TypeOf<typeof pullParams>;
143
143
  export declare const configCheck: import("zod").ZodObject<{
144
144
  dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
145
145
  out: import("zod").ZodOptional<import("zod").ZodString>;
146
146
  }, "strip", import("zod").ZodTypeAny, {
147
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
147
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
148
148
  out?: string | undefined;
149
149
  }, {
150
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
150
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
151
151
  out?: string | undefined;
152
152
  }>;
153
153
  export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod").ZodObject<{
@@ -160,10 +160,10 @@ export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod")
160
160
  dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
161
161
  out: import("zod").ZodOptional<import("zod").ZodString>;
162
162
  }, "strip", import("zod").ZodTypeAny, {
163
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
163
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
164
164
  out?: string | undefined;
165
165
  }, {
166
- dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
166
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
167
167
  out?: string | undefined;
168
168
  }>>;
169
169
  export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
@@ -21,16 +21,16 @@ export declare const configCommonSchema: import("zod").ZodObject<{
21
21
  schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
22
22
  }, "strip", import("zod").ZodTypeAny, {
23
23
  schema: string | string[];
24
- dialect: "mysql" | "postgresql" | "sqlite";
24
+ dialect: "postgresql" | "mysql" | "sqlite";
25
25
  breakpoints: boolean;
26
26
  schemaFilter: string | string[];
27
- driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
27
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
28
28
  out?: string | undefined;
29
29
  tablesFilter?: string | string[] | undefined;
30
30
  }, {
31
31
  schema: string | string[];
32
- dialect: "mysql" | "postgresql" | "sqlite";
33
- driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
32
+ dialect: "postgresql" | "mysql" | "sqlite";
33
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
34
34
  out?: string | undefined;
35
35
  breakpoints?: boolean | undefined;
36
36
  tablesFilter?: string | string[] | undefined;
@@ -118,14 +118,14 @@ export declare const configPushSchema: import("zod").ZodObject<{
118
118
  }, "strip", import("zod").ZodTypeAny, {
119
119
  strict: boolean;
120
120
  schema: string | string[];
121
- dialect: "mysql" | "postgresql" | "sqlite";
121
+ dialect: "postgresql" | "mysql" | "sqlite";
122
122
  schemaFilter: string | string[];
123
123
  verbose: boolean;
124
124
  out?: string | undefined;
125
125
  tablesFilter?: string | string[] | undefined;
126
126
  }, {
127
127
  schema: string | string[];
128
- dialect: "mysql" | "postgresql" | "sqlite";
128
+ dialect: "postgresql" | "mysql" | "sqlite";
129
129
  strict?: boolean | undefined;
130
130
  out?: string | undefined;
131
131
  tablesFilter?: string | string[] | undefined;
@@ -167,16 +167,16 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
167
167
  schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
168
168
  }, "strip", import("zod").ZodTypeAny, {
169
169
  schema: string | string[];
170
- dialect: "mysql" | "postgresql" | "sqlite";
170
+ dialect: "postgresql" | "mysql" | "sqlite";
171
171
  breakpoints: boolean;
172
172
  schemaFilter: string | string[];
173
- driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
173
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
174
174
  out?: string | undefined;
175
175
  tablesFilter?: string | string[] | undefined;
176
176
  }, {
177
177
  schema: string | string[];
178
- dialect: "mysql" | "postgresql" | "sqlite";
179
- driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
178
+ dialect: "postgresql" | "mysql" | "sqlite";
179
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
180
180
  out?: string | undefined;
181
181
  breakpoints?: boolean | undefined;
182
182
  tablesFilter?: string | string[] | undefined;
@@ -4,6 +4,7 @@ export declare const withStyle: {
4
4
  errorWarning: (str: string) => string;
5
5
  fullWarning: (str: string) => string;
6
6
  suggestion: (str: string) => string;
7
+ info: (str: string) => string;
7
8
  };
8
9
  export declare const outputs: {
9
10
  studio: {
@@ -0,0 +1,92 @@
1
+ import { TypeOf } from "zod";
2
+ export declare const credentials: import("zod").ZodIntersection<import("zod").ZodUnion<[import("zod").ZodObject<{
3
+ host: import("zod").ZodString;
4
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
5
+ user: import("zod").ZodDefault<import("zod").ZodString>;
6
+ password: import("zod").ZodOptional<import("zod").ZodString>;
7
+ database: import("zod").ZodString;
8
+ ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ host: string;
11
+ user: string;
12
+ database: string;
13
+ port?: number | undefined;
14
+ password?: string | undefined;
15
+ ssl?: boolean | undefined;
16
+ }, {
17
+ host: string;
18
+ database: string;
19
+ port?: number | undefined;
20
+ user?: string | undefined;
21
+ password?: string | undefined;
22
+ ssl?: boolean | undefined;
23
+ }>, import("zod").ZodObject<{
24
+ url: import("zod").ZodString;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ url: string;
27
+ }, {
28
+ url: string;
29
+ }>, import("zod").ZodObject<{
30
+ driver: import("zod").ZodLiteral<"aws-data-api">;
31
+ database: import("zod").ZodString;
32
+ secretArn: import("zod").ZodString;
33
+ resourceArn: import("zod").ZodString;
34
+ }, "strip", import("zod").ZodTypeAny, {
35
+ database: string;
36
+ driver: "aws-data-api";
37
+ secretArn: string;
38
+ resourceArn: string;
39
+ }, {
40
+ database: string;
41
+ driver: "aws-data-api";
42
+ secretArn: string;
43
+ resourceArn: string;
44
+ }>]>, import("zod").ZodUnion<[import("zod").ZodObject<{
45
+ host: import("zod").ZodString;
46
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
47
+ user: import("zod").ZodDefault<import("zod").ZodString>;
48
+ password: import("zod").ZodOptional<import("zod").ZodString>;
49
+ database: import("zod").ZodString;
50
+ }, "strip", import("zod").ZodTypeAny, {
51
+ host: string;
52
+ user: string;
53
+ database: string;
54
+ port?: number | undefined;
55
+ password?: string | undefined;
56
+ }, {
57
+ host: string;
58
+ database: string;
59
+ port?: number | undefined;
60
+ user?: string | undefined;
61
+ password?: string | undefined;
62
+ }>, import("zod").ZodObject<{
63
+ url: import("zod").ZodString;
64
+ }, "strip", import("zod").ZodTypeAny, {
65
+ url: string;
66
+ }, {
67
+ url: string;
68
+ }>]>>;
69
+ export type Credentials = TypeOf<typeof credentials>;
70
+ export declare const studioCliParams: import("zod").ZodObject<{
71
+ port: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
72
+ host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
73
+ config: import("zod").ZodOptional<import("zod").ZodString>;
74
+ }, "strip", import("zod").ZodTypeAny, {
75
+ host: string;
76
+ port: number;
77
+ config?: string | undefined;
78
+ }, {
79
+ host?: string | undefined;
80
+ port?: number | undefined;
81
+ config?: string | undefined;
82
+ }>;
83
+ export declare const studioConfig: import("zod").ZodObject<{
84
+ dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
85
+ schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
86
+ }, "strip", import("zod").ZodTypeAny, {
87
+ schema: string | string[];
88
+ dialect: "postgresql" | "mysql" | "sqlite";
89
+ }, {
90
+ schema: string | string[];
91
+ dialect: "postgresql" | "mysql" | "sqlite";
92
+ }>;
package/cli/views.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { Named, NamedWithSchema } from "./commands/migrate";
4
4
  export declare const warning: (msg: string) => void;
5
5
  export declare const err: (msg: string) => void;
6
6
  export declare const info: (msg: string, greyMsg?: string) => string;
7
+ export declare const grey: (msg: string) => string;
7
8
  export declare const error: (error: string, greyMsg?: string) => string;
8
9
  export declare const schema: (schema: CommonSchema) => string;
9
10
  export interface RenamePropmtItem<T> {
@@ -47,6 +48,12 @@ export declare class IntrospectProgress extends TaskView {
47
48
  private statusText;
48
49
  render(): string;
49
50
  }
51
+ export declare class MigrateProgress extends TaskView {
52
+ private readonly spinner;
53
+ private timeout;
54
+ constructor();
55
+ render(status: "pending" | "done"): string;
56
+ }
50
57
  export declare class DropMigrationView<T extends {
51
58
  tag: string;
52
59
  }> extends Prompt<T> {
package/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import { Dialect } from "./schemaValidator";
2
1
  export type Config = {
3
- dialect: Dialect;
2
+ dialect: "postgresql" | "mysql" | "sqlite";
4
3
  out?: string;
5
4
  breakpoints?: boolean;
6
5
  tablesFilter?: string | string[];
@@ -8,7 +7,10 @@ export type Config = {
8
7
  schema?: string | string[];
9
8
  verbose?: boolean;
10
9
  strict?: boolean;
11
- } & {
10
+ migrations?: {
11
+ table?: string;
12
+ schema?: string;
13
+ };
12
14
  introspect?: {
13
15
  casing: "camel" | "preserve";
14
16
  };
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { Dialect } from "./schemaValidator";
2
1
  export type Config = {
3
- dialect: Dialect;
2
+ dialect: "postgresql" | "mysql" | "sqlite";
4
3
  out?: string;
5
4
  breakpoints?: boolean;
6
5
  tablesFilter?: string | string[];
@@ -8,7 +7,10 @@ export type Config = {
8
7
  schema?: string | string[];
9
8
  verbose?: boolean;
10
9
  strict?: boolean;
11
- } & {
10
+ migrations?: {
11
+ table?: string;
12
+ schema?: string;
13
+ };
12
14
  introspect?: {
13
15
  casing: "camel" | "preserve";
14
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.17-b4f119e",
3
+ "version": "0.20.17-c347d7b",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -67,7 +67,7 @@
67
67
  "dockerode": "^3.3.4",
68
68
  "dotenv": "^16.0.3",
69
69
  "drizzle-kit": "0.20.14",
70
- "drizzle-orm": "0.30.5-ab9feb7",
70
+ "drizzle-orm": "0.30.9",
71
71
  "esbuild-node-externals": "^1.9.0",
72
72
  "eslint": "^8.57.0",
73
73
  "eslint-config-prettier": "^9.1.0",