drizzle-kit 0.20.17-5938f5d → 0.20.17-6785c69

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
41
41
  uniqueConstraints: Record<string, string>;
42
42
  }>;
43
43
  version: "6";
44
- dialect: "pg";
44
+ dialect: "postgresql";
45
45
  schemas: Record<string, string>;
46
46
  enums: Record<string, {
47
47
  name: string;
@@ -70,7 +70,7 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
70
70
  uniqueConstraints: Record<string, string>;
71
71
  }>;
72
72
  version: "6";
73
- dialect: "pg";
73
+ dialect: "postgresql";
74
74
  schemas: Record<string, string>;
75
75
  enums: Record<string, {
76
76
  name: string;
@@ -122,7 +122,7 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
122
122
  }>;
123
123
  id: string;
124
124
  prevId: string;
125
- version: "6";
125
+ version: "5";
126
126
  dialect: "mysql";
127
127
  _meta: {
128
128
  columns: Record<string, string>;
@@ -176,7 +176,7 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
176
176
  }>;
177
177
  id: string;
178
178
  prevId: string;
179
- version: "6";
179
+ version: "5";
180
180
  dialect: "mysql";
181
181
  _meta: {
182
182
  columns: Record<string, string>;
@@ -1,9 +1,4 @@
1
- import type { MysqlCredentials } from "../validations/mysql";
2
1
  import type { DB } from "../../utils";
3
- export declare const connectToMySQL: (credentials: MysqlCredentials) => Promise<{
4
- db: DB;
5
- database: string;
6
- }>;
7
2
  export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters: string[]) => Promise<{
8
3
  schema: {
9
4
  tables: Record<string, {
@@ -45,7 +40,7 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
45
40
  }>;
46
41
  id: string;
47
42
  prevId: string;
48
- version: "6";
43
+ version: "5";
49
44
  dialect: "mysql";
50
45
  _meta: {
51
46
  columns: Record<string, string>;
@@ -43,7 +43,7 @@ export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters
43
43
  id: string;
44
44
  prevId: string;
45
45
  version: "6";
46
- dialect: "pg";
46
+ dialect: "postgresql";
47
47
  schemas: Record<string, string>;
48
48
  _meta: {
49
49
  columns: Record<string, string>;
@@ -1,7 +1,6 @@
1
1
  import type { SqliteCredentials } from "../validations/sqlite";
2
2
  import type { SQLiteDB } from "../../utils";
3
3
  import { Casing } from "../validations/common";
4
- export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB>;
5
4
  export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters: string[], casing: Casing) => Promise<{
6
5
  schema: {
7
6
  tables: Record<string, {
@@ -1,10 +1,10 @@
1
1
  import { SQLiteSchemaInternal, SQLiteSchemaSquashed } from "../../serializer/sqliteSchema";
2
2
  import type { JsonStatement } from "../../jsonStatements";
3
- import type { DB } from "../../utils";
3
+ import type { SQLiteDB } from "../../utils";
4
4
  export declare const _moveDataStatements: (tableName: string, json: SQLiteSchemaSquashed, dataLoss?: boolean) => string[];
5
5
  export declare const getOldTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
6
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<{
7
+ export declare const logSuggestionsAndReturn: (connection: SQLiteDB, statements: JsonStatement[], json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, meta: SQLiteSchemaInternal["_meta"]) => Promise<{
8
8
  statementsToExecute: string[];
9
9
  shouldAskForApprove: boolean;
10
10
  infoToPrint: string[];
@@ -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;
@@ -22,7 +22,7 @@ export declare const preparePushConfig: (options: Record<string, unknown>) => Pr
22
22
  dialect: "mysql";
23
23
  credentials: MysqlCredentials;
24
24
  } | {
25
- dialect: "pg";
25
+ dialect: "postgresql";
26
26
  credentials: PostgresCredentials;
27
27
  } | {
28
28
  dialect: "sqlite";
@@ -38,7 +38,7 @@ export declare const preparePullConfig: (options: Record<string, unknown>) => Pr
38
38
  dialect: "mysql";
39
39
  credentials: MysqlCredentials;
40
40
  } | {
41
- dialect: "pg";
41
+ dialect: "postgresql";
42
42
  credentials: PostgresCredentials;
43
43
  } | {
44
44
  dialect: "sqlite";
@@ -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;
@@ -0,0 +1,18 @@
1
+ import type { DB, Proxy, SQLiteDB, SqliteProxy } from "../utils";
2
+ import type { PostgresCredentials } from "./validations/pg";
3
+ import type { MysqlCredentials } from "./validations/mysql";
4
+ import type { SqliteCredentials } from "./validations/sqlite";
5
+ import type { MigrationConfig } from "drizzle-orm/migrator";
6
+ export declare const preparePostgresDB: (credentials: PostgresCredentials) => Promise<DB & {
7
+ proxy: Proxy;
8
+ migrate: (config: string | MigrationConfig) => Promise<void>;
9
+ }>;
10
+ export declare const connectToMySQL: (it: MysqlCredentials) => Promise<{
11
+ db: DB;
12
+ proxy: Proxy;
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>;
18
+ }>;
@@ -1,6 +1,6 @@
1
1
  import { TypeOf } from "zod";
2
2
  export declare const cliConfigGenerate: import("zod").ZodObject<{
3
- dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
3
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
4
4
  schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
5
5
  out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
6
6
  config: import("zod").ZodOptional<import("zod").ZodString>;
@@ -13,24 +13,24 @@ 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" | "pg" | "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" | "pg" | "sqlite" | undefined;
22
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
23
23
  config?: string | undefined;
24
24
  out?: string | undefined;
25
25
  breakpoints?: boolean | undefined;
26
26
  }>;
27
27
  export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
28
28
  export declare const pushParams: import("zod").ZodObject<{
29
- dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
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">]>>>;
33
- driver: import("zod").ZodString;
32
+ schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
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>;
36
36
  url: import("zod").ZodOptional<import("zod").ZodString>;
@@ -44,46 +44,46 @@ 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" | "pg" | "sqlite";
48
- driver: string;
49
- schemaFilters: string | string[];
47
+ dialect: "postgresql" | "mysql" | "sqlite";
48
+ schemaFilter: string | string[];
50
49
  strict?: boolean | undefined;
51
50
  schema?: string | string[] | undefined;
52
51
  url?: string | undefined;
53
- tablesFilter?: string | string[] | undefined;
54
- verbose?: boolean | undefined;
55
52
  host?: string | undefined;
56
53
  port?: string | undefined;
57
54
  user?: string | undefined;
58
55
  password?: string | undefined;
59
56
  database?: string | undefined;
60
- connectionString?: string | undefined;
61
57
  uri?: string | undefined;
58
+ driver?: string | undefined;
59
+ connectionString?: string | undefined;
62
60
  ssl?: string | undefined;
63
61
  authToken?: string | undefined;
62
+ tablesFilter?: string | string[] | undefined;
63
+ verbose?: boolean | undefined;
64
64
  }, {
65
- dialect: "mysql" | "pg" | "sqlite";
66
- driver: string;
65
+ dialect: "postgresql" | "mysql" | "sqlite";
67
66
  strict?: boolean | undefined;
68
67
  schema?: string | string[] | undefined;
69
68
  url?: string | undefined;
70
- tablesFilter?: string | string[] | undefined;
71
- verbose?: boolean | undefined;
72
69
  host?: string | undefined;
73
70
  port?: string | undefined;
74
71
  user?: string | undefined;
75
72
  password?: string | undefined;
76
73
  database?: string | undefined;
77
- connectionString?: string | undefined;
78
- schemaFilters?: string | string[] | undefined;
79
74
  uri?: string | undefined;
75
+ driver?: string | undefined;
76
+ connectionString?: string | undefined;
80
77
  ssl?: string | undefined;
81
78
  authToken?: string | undefined;
79
+ tablesFilter?: string | string[] | undefined;
80
+ schemaFilter?: string | string[] | undefined;
81
+ verbose?: boolean | undefined;
82
82
  }>;
83
83
  export type PushParams = TypeOf<typeof pushParams>;
84
84
  export declare const pullParams: import("zod").ZodObject<{
85
85
  config: import("zod").ZodOptional<import("zod").ZodString>;
86
- dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
86
+ dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
87
87
  out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
88
88
  tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
89
89
  schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
@@ -98,56 +98,56 @@ export declare const pullParams: import("zod").ZodObject<{
98
98
  ssl: import("zod").ZodOptional<import("zod").ZodString>;
99
99
  url: import("zod").ZodOptional<import("zod").ZodString>;
100
100
  authToken: import("zod").ZodOptional<import("zod").ZodString>;
101
- "introspect-casing": import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
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
- "introspect-casing": "camel" | "preserve";
108
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
109
- url?: string | undefined;
110
- config?: string | undefined;
111
- driver?: string | undefined;
112
- tablesFilter?: string | string[] | undefined;
113
- host?: string | undefined;
114
- port?: string | undefined;
115
- user?: string | undefined;
116
- password?: string | undefined;
117
- database?: string | undefined;
118
- connectionString?: string | undefined;
119
- uri?: string | undefined;
120
- ssl?: string | undefined;
121
- authToken?: string | undefined;
122
- }, {
123
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
124
- url?: string | undefined;
125
- config?: string | undefined;
126
- out?: string | undefined;
127
- breakpoints?: boolean | undefined;
128
- driver?: string | undefined;
129
- tablesFilter?: string | string[] | undefined;
130
- schemaFilter?: string | string[] | undefined;
131
- host?: string | undefined;
132
- port?: string | undefined;
133
- user?: string | undefined;
134
- password?: string | undefined;
135
- database?: string | undefined;
136
- connectionString?: string | undefined;
137
- uri?: string | undefined;
138
- ssl?: string | undefined;
139
- authToken?: string | undefined;
140
- "introspect-casing"?: "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
- dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
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" | "pg" | "sqlite" | undefined;
147
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
148
148
  out?: string | undefined;
149
149
  }, {
150
- dialect?: "mysql" | "pg" | "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<{
@@ -157,13 +157,13 @@ export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod")
157
157
  }, {
158
158
  config?: string | undefined;
159
159
  }>, import("zod").ZodObject<{
160
- dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
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" | "pg" | "sqlite" | undefined;
163
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
164
164
  out?: string | undefined;
165
165
  }, {
166
- dialect?: "mysql" | "pg" | "sqlite" | undefined;
166
+ dialect?: "postgresql" | "mysql" | "sqlite" | undefined;
167
167
  out?: string | undefined;
168
168
  }>>;
169
169
  export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
@@ -12,7 +12,7 @@ export declare const postgresDriver: import("zod").ZodLiteral<"pg">;
12
12
  export declare const mysqlDriver: import("zod").ZodLiteral<"mysql2">;
13
13
  export declare const driver: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"better-sqlite">, import("zod").ZodLiteral<"turso">, import("zod").ZodLiteral<"libsql">, import("zod").ZodLiteral<"d1">, import("zod").ZodLiteral<"expo">]>, import("zod").ZodLiteral<"pg">, import("zod").ZodLiteral<"mysql2">]>;
14
14
  export declare const configCommonSchema: import("zod").ZodObject<{
15
- dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
15
+ dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
16
16
  schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
17
17
  out: import("zod").ZodOptional<import("zod").ZodString>;
18
18
  breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -21,18 +21,18 @@ 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" | "pg" | "sqlite";
24
+ dialect: "postgresql" | "mysql" | "sqlite";
25
25
  breakpoints: boolean;
26
26
  schemaFilter: string | string[];
27
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
27
28
  out?: string | undefined;
28
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
29
29
  tablesFilter?: string | string[] | undefined;
30
30
  }, {
31
31
  schema: string | string[];
32
- dialect: "mysql" | "pg" | "sqlite";
32
+ dialect: "postgresql" | "mysql" | "sqlite";
33
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
33
34
  out?: string | undefined;
34
35
  breakpoints?: boolean | undefined;
35
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
36
36
  tablesFilter?: string | string[] | undefined;
37
37
  schemaFilter?: string | string[] | undefined;
38
38
  }>;
@@ -108,7 +108,7 @@ export declare const configGenerateSchema: import("zod").ZodObject<{
108
108
  }>;
109
109
  export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
110
110
  export declare const configPushSchema: import("zod").ZodObject<{
111
- dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
111
+ dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
112
112
  schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
113
113
  tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
114
114
  schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
@@ -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" | "pg" | "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" | "pg" | "sqlite";
128
+ dialect: "postgresql" | "mysql" | "sqlite";
129
129
  strict?: boolean | undefined;
130
130
  out?: string | undefined;
131
131
  tablesFilter?: string | string[] | undefined;
@@ -158,7 +158,7 @@ export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod"
158
158
  connectionString: string;
159
159
  }>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>;
160
160
  export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
161
- dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
161
+ dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
162
162
  schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
163
163
  out: import("zod").ZodOptional<import("zod").ZodString>;
164
164
  breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
@@ -167,18 +167,18 @@ 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" | "pg" | "sqlite";
170
+ dialect: "postgresql" | "mysql" | "sqlite";
171
171
  breakpoints: boolean;
172
172
  schemaFilter: string | string[];
173
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
173
174
  out?: string | undefined;
174
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
175
175
  tablesFilter?: string | string[] | undefined;
176
176
  }, {
177
177
  schema: string | string[];
178
- dialect: "mysql" | "pg" | "sqlite";
178
+ dialect: "postgresql" | "mysql" | "sqlite";
179
+ driver?: "turso" | "expo" | "pg" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
179
180
  out?: string | undefined;
180
181
  breakpoints?: boolean | undefined;
181
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
182
182
  tablesFilter?: string | string[] | undefined;
183
183
  schemaFilter?: string | string[] | undefined;
184
184
  }>, import("zod").ZodUnion<[import("zod").ZodObject<{
@@ -18,17 +18,11 @@ export declare const mysqlCredentials: import("zod").ZodUnion<[import("zod").Zod
18
18
  user?: string | undefined;
19
19
  password?: string | undefined;
20
20
  }>, import("zod").ZodObject<{
21
- uri: import("zod").ZodString;
21
+ url: import("zod").ZodString;
22
22
  }, "strip", import("zod").ZodTypeAny, {
23
- uri: string;
23
+ url: string;
24
24
  }, {
25
- uri: string;
26
- }>, import("zod").ZodObject<{
27
- connectionString: import("zod").ZodString;
28
- }, "strip", import("zod").ZodTypeAny, {
29
- connectionString: string;
30
- }, {
31
- connectionString: string;
25
+ url: string;
32
26
  }>]>;
33
27
  export type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
34
28
  export declare const printCliConnectionIssues: (options: any) => void;
@@ -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: {
@@ -15,12 +16,11 @@ export declare const outputs: {
15
16
  common: {
16
17
  ambiguousParams: (command: string) => string;
17
18
  schema: (command: string) => string;
18
- schemaConfig: (command: string) => string;
19
19
  };
20
20
  postgres: {
21
21
  connection: {
22
- driver: () => string;
23
22
  required: () => string;
23
+ awsDataApi: () => void;
24
24
  };
25
25
  };
26
26
  mysql: {
@@ -21,11 +21,26 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
21
21
  password?: string | undefined;
22
22
  ssl?: boolean | undefined;
23
23
  }>, import("zod").ZodObject<{
24
- connectionString: import("zod").ZodString;
24
+ url: import("zod").ZodString;
25
25
  }, "strip", import("zod").ZodTypeAny, {
26
- connectionString: string;
26
+ url: string;
27
27
  }, {
28
- connectionString: string;
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;
29
44
  }>]>;
30
45
  export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
31
46
  export declare const printConfigConnectionIssues: (options: Record<string, unknown>) => void;