drizzle-kit 0.28.1 → 0.29.0
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.
- package/api.d.mts +347 -4
- package/api.d.ts +347 -4
- package/api.js +8682 -2972
- package/api.mjs +8679 -2972
- package/bin.cjs +47563 -44177
- package/{index-BfiZoTqG.d.mts → index-Z-1TKnbX.d.mts} +22 -7
- package/{index-BfiZoTqG.d.ts → index-Z-1TKnbX.d.ts} +22 -7
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -1
- package/utils.js +207 -96
- package/utils.mjs +207 -96
@@ -4,10 +4,10 @@ declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "non
|
|
4
4
|
type Prefix = (typeof prefixes)[number];
|
5
5
|
declare const casingTypes: readonly ["snake_case", "camelCase"];
|
6
6
|
type CasingType = (typeof casingTypes)[number];
|
7
|
-
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite"];
|
7
|
+
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
|
8
8
|
type Driver = (typeof drivers)[number];
|
9
9
|
|
10
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso"];
|
10
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore"];
|
11
11
|
type Dialect = (typeof dialects)[number];
|
12
12
|
|
13
13
|
type SslOptions = {
|
@@ -28,7 +28,7 @@ type Verify<T, U extends T> = U;
|
|
28
28
|
* **Config** usage:
|
29
29
|
*
|
30
30
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
31
|
-
* *Possible values*: `postgresql`, `mysql`, `sqlite`
|
31
|
+
* *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore
|
32
32
|
*
|
33
33
|
* See https://orm.drizzle.team/kit-docs/config-reference#dialect
|
34
34
|
*
|
@@ -69,7 +69,7 @@ type Verify<T, U extends T> = U;
|
|
69
69
|
*
|
70
70
|
* `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
|
71
71
|
* It’s optional and true by default, it’s necessary to properly apply migrations on databases,
|
72
|
-
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
|
72
|
+
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
|
73
73
|
* Drizzle ORM has to apply them sequentially one by one.
|
74
74
|
*
|
75
75
|
* See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
|
@@ -197,7 +197,22 @@ type Config = {
|
|
197
197
|
} | {
|
198
198
|
dialect: Verify<Dialect, 'sqlite'>;
|
199
199
|
driver: Verify<Driver, 'expo'>;
|
200
|
-
} | {
|
200
|
+
} | {
|
201
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
202
|
+
driver: Verify<Driver, 'durable-sqlite'>;
|
203
|
+
} | {} | {
|
204
|
+
dialect: Verify<Dialect, 'singlestore'>;
|
205
|
+
dbCredentials: {
|
206
|
+
host: string;
|
207
|
+
port?: number;
|
208
|
+
user?: string;
|
209
|
+
password?: string;
|
210
|
+
database: string;
|
211
|
+
ssl?: string | SslOptions;
|
212
|
+
} | {
|
213
|
+
url: string;
|
214
|
+
};
|
215
|
+
});
|
201
216
|
/**
|
202
217
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
203
218
|
* adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
|
@@ -205,7 +220,7 @@ type Config = {
|
|
205
220
|
* **Config** usage:
|
206
221
|
*
|
207
222
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
208
|
-
* *Possible values*: `postgresql`, `mysql`, `sqlite`
|
223
|
+
* *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore`
|
209
224
|
*
|
210
225
|
* See https://orm.drizzle.team/kit-docs/config-reference#dialect
|
211
226
|
*
|
@@ -246,7 +261,7 @@ type Config = {
|
|
246
261
|
*
|
247
262
|
* `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
|
248
263
|
* It’s optional and true by default, it’s necessary to properly apply migrations on databases,
|
249
|
-
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
|
264
|
+
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
|
250
265
|
* Drizzle ORM has to apply them sequentially one by one.
|
251
266
|
*
|
252
267
|
* See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
|
@@ -4,10 +4,10 @@ declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "non
|
|
4
4
|
type Prefix = (typeof prefixes)[number];
|
5
5
|
declare const casingTypes: readonly ["snake_case", "camelCase"];
|
6
6
|
type CasingType = (typeof casingTypes)[number];
|
7
|
-
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite"];
|
7
|
+
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
|
8
8
|
type Driver = (typeof drivers)[number];
|
9
9
|
|
10
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso"];
|
10
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore"];
|
11
11
|
type Dialect = (typeof dialects)[number];
|
12
12
|
|
13
13
|
type SslOptions = {
|
@@ -28,7 +28,7 @@ type Verify<T, U extends T> = U;
|
|
28
28
|
* **Config** usage:
|
29
29
|
*
|
30
30
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
31
|
-
* *Possible values*: `postgresql`, `mysql`, `sqlite`
|
31
|
+
* *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore
|
32
32
|
*
|
33
33
|
* See https://orm.drizzle.team/kit-docs/config-reference#dialect
|
34
34
|
*
|
@@ -69,7 +69,7 @@ type Verify<T, U extends T> = U;
|
|
69
69
|
*
|
70
70
|
* `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
|
71
71
|
* It’s optional and true by default, it’s necessary to properly apply migrations on databases,
|
72
|
-
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
|
72
|
+
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
|
73
73
|
* Drizzle ORM has to apply them sequentially one by one.
|
74
74
|
*
|
75
75
|
* See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
|
@@ -197,7 +197,22 @@ type Config = {
|
|
197
197
|
} | {
|
198
198
|
dialect: Verify<Dialect, 'sqlite'>;
|
199
199
|
driver: Verify<Driver, 'expo'>;
|
200
|
-
} | {
|
200
|
+
} | {
|
201
|
+
dialect: Verify<Dialect, 'sqlite'>;
|
202
|
+
driver: Verify<Driver, 'durable-sqlite'>;
|
203
|
+
} | {} | {
|
204
|
+
dialect: Verify<Dialect, 'singlestore'>;
|
205
|
+
dbCredentials: {
|
206
|
+
host: string;
|
207
|
+
port?: number;
|
208
|
+
user?: string;
|
209
|
+
password?: string;
|
210
|
+
database: string;
|
211
|
+
ssl?: string | SslOptions;
|
212
|
+
} | {
|
213
|
+
url: string;
|
214
|
+
};
|
215
|
+
});
|
201
216
|
/**
|
202
217
|
* **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
|
203
218
|
* adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
|
@@ -205,7 +220,7 @@ type Config = {
|
|
205
220
|
* **Config** usage:
|
206
221
|
*
|
207
222
|
* `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
|
208
|
-
* *Possible values*: `postgresql`, `mysql`, `sqlite`
|
223
|
+
* *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore`
|
209
224
|
*
|
210
225
|
* See https://orm.drizzle.team/kit-docs/config-reference#dialect
|
211
226
|
*
|
@@ -246,7 +261,7 @@ type Config = {
|
|
246
261
|
*
|
247
262
|
* `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
|
248
263
|
* It’s optional and true by default, it’s necessary to properly apply migrations on databases,
|
249
|
-
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite) and
|
264
|
+
* that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
|
250
265
|
* Drizzle ORM has to apply them sequentially one by one.
|
251
266
|
*
|
252
267
|
* See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
|
package/index.d.mts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import 'tls';
|
2
|
-
export { a as Config, d as defineConfig } from './index-
|
2
|
+
export { a as Config, d as defineConfig } from './index-Z-1TKnbX.mjs';
|
package/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import 'tls';
|
2
|
-
export { a as Config, d as defineConfig } from './index-
|
2
|
+
export { a as Config, d as defineConfig } from './index-Z-1TKnbX.js';
|
package/package.json
CHANGED