drizzle-kit 1.0.0-beta.1-03a5cdc → 1.0.0-beta.1-813549e
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-postgres.d.mts +12163 -0
- package/api-postgres.d.ts +12163 -0
- package/api-postgres.js +33954 -0
- package/api-postgres.mjs +33947 -0
- package/bin.cjs +159677 -76943
- package/index.d.mts +28 -1
- package/index.d.ts +28 -1
- package/package.json +148 -143
- package/api.d.mts +0 -3336
- package/api.d.ts +0 -3336
- package/api.js +0 -169531
- package/api.mjs +0 -169509
- package/utils.js +0 -6408
- package/utils.mjs +0 -6383
package/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ type Prefix = (typeof prefixes)[number];
|
|
|
5
5
|
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
|
|
6
6
|
type Driver = (typeof drivers)[number];
|
|
7
7
|
|
|
8
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"];
|
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel", "mssql", "cockroach"];
|
|
9
9
|
type Dialect = (typeof dialects)[number];
|
|
10
10
|
|
|
11
11
|
type SslOptions = {
|
|
@@ -223,6 +223,33 @@ type Config = {
|
|
|
223
223
|
password?: string;
|
|
224
224
|
database: string;
|
|
225
225
|
}));
|
|
226
|
+
} | {
|
|
227
|
+
dialect: Verify<Dialect, 'mssql'>;
|
|
228
|
+
dbCredentials: {
|
|
229
|
+
port: number;
|
|
230
|
+
user: string;
|
|
231
|
+
password: string;
|
|
232
|
+
database: string;
|
|
233
|
+
server: string;
|
|
234
|
+
options?: {
|
|
235
|
+
encrypt?: boolean;
|
|
236
|
+
trustServerCertificate?: boolean;
|
|
237
|
+
};
|
|
238
|
+
} | {
|
|
239
|
+
url: string;
|
|
240
|
+
};
|
|
241
|
+
} | {
|
|
242
|
+
dialect: Verify<Dialect, 'cockroach'>;
|
|
243
|
+
dbCredentials: ({
|
|
244
|
+
host: string;
|
|
245
|
+
port?: number;
|
|
246
|
+
user?: string;
|
|
247
|
+
password?: string;
|
|
248
|
+
database: string;
|
|
249
|
+
ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
|
|
250
|
+
} & {}) | {
|
|
251
|
+
url: string;
|
|
252
|
+
};
|
|
226
253
|
});
|
|
227
254
|
/**
|
|
228
255
|
* **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
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ type Prefix = (typeof prefixes)[number];
|
|
|
5
5
|
declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
|
|
6
6
|
type Driver = (typeof drivers)[number];
|
|
7
7
|
|
|
8
|
-
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"];
|
|
8
|
+
declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel", "mssql", "cockroach"];
|
|
9
9
|
type Dialect = (typeof dialects)[number];
|
|
10
10
|
|
|
11
11
|
type SslOptions = {
|
|
@@ -223,6 +223,33 @@ type Config = {
|
|
|
223
223
|
password?: string;
|
|
224
224
|
database: string;
|
|
225
225
|
}));
|
|
226
|
+
} | {
|
|
227
|
+
dialect: Verify<Dialect, 'mssql'>;
|
|
228
|
+
dbCredentials: {
|
|
229
|
+
port: number;
|
|
230
|
+
user: string;
|
|
231
|
+
password: string;
|
|
232
|
+
database: string;
|
|
233
|
+
server: string;
|
|
234
|
+
options?: {
|
|
235
|
+
encrypt?: boolean;
|
|
236
|
+
trustServerCertificate?: boolean;
|
|
237
|
+
};
|
|
238
|
+
} | {
|
|
239
|
+
url: string;
|
|
240
|
+
};
|
|
241
|
+
} | {
|
|
242
|
+
dialect: Verify<Dialect, 'cockroach'>;
|
|
243
|
+
dbCredentials: ({
|
|
244
|
+
host: string;
|
|
245
|
+
port?: number;
|
|
246
|
+
user?: string;
|
|
247
|
+
password?: string;
|
|
248
|
+
database: string;
|
|
249
|
+
ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
|
|
250
|
+
} & {}) | {
|
|
251
|
+
url: string;
|
|
252
|
+
};
|
|
226
253
|
});
|
|
227
254
|
/**
|
|
228
255
|
* **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
|
package/package.json
CHANGED
|
@@ -1,145 +1,150 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
2
|
+
"name": "drizzle-kit",
|
|
3
|
+
"version": "1.0.0-beta.1-813549e",
|
|
4
|
+
"homepage": "https://orm.drizzle.team",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"drizzle",
|
|
7
|
+
"orm",
|
|
8
|
+
"pg",
|
|
9
|
+
"mysql",
|
|
10
|
+
"singlestore",
|
|
11
|
+
"postgresql",
|
|
12
|
+
"postgres",
|
|
13
|
+
"sqlite",
|
|
14
|
+
"database",
|
|
15
|
+
"sql",
|
|
16
|
+
"typescript",
|
|
17
|
+
"ts",
|
|
18
|
+
"drizzle-kit",
|
|
19
|
+
"migrations",
|
|
20
|
+
"schema"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"provenance": true
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/drizzle-team/drizzle-orm.git"
|
|
28
|
+
},
|
|
29
|
+
"author": "Drizzle Team",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"bin": {
|
|
32
|
+
"drizzle-kit": "./bin.cjs"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"api": "tsx ./dev/api.ts",
|
|
36
|
+
"migrate:old": "drizzle-kit generate:mysql",
|
|
37
|
+
"cli": "tsx ./src/cli/index.ts",
|
|
38
|
+
"test": "TEST_CONFIG_PATH_PREFIX=./tests/cli/ vitest run",
|
|
39
|
+
"test:types": "pnpm tsc -p ./tsconfig.typetest.json",
|
|
40
|
+
"build": "rm -rf ./dist && tsx build.ts && cp package.json dist/",
|
|
41
|
+
"build:artifact": "pnpm run build",
|
|
42
|
+
"build:cli": "rm -rf ./dist && tsx build.cli.ts && cp package.json dist/",
|
|
43
|
+
"build:dev": "rm -rf ./dist && tsx build.dev.ts && tsc -p tsconfig.cli-types.json && chmod +x ./dist/index.cjs",
|
|
44
|
+
"build:ext": "rm -rf ./dist && vitest run bin.test && vitest run ./tests/postgres/ && vitest run ./tests/sqlite && vitest run ./tests/mysql && tsx build.ext.ts",
|
|
45
|
+
"pack": "cp package.json README.md dist/ && (cd dist && npm pack --pack-destination ..) && rm -f package.tgz && mv *.tgz package.tgz",
|
|
46
|
+
"pack:artifact": "pnpm run pack",
|
|
47
|
+
"publish": "npm publish package.tgz",
|
|
48
|
+
"test:postgres": "vitest run ./postgres/",
|
|
49
|
+
"test:other": "vitest run ./mysql/ ./sqlite/ ./other",
|
|
50
|
+
"test:cockroach": "vitest run ./cockroach",
|
|
51
|
+
"test:mssql": "vitest run ./mssql",
|
|
52
|
+
"test:gel": "vitest run ./gel",
|
|
53
|
+
"test:singlestore": "vitest run ./singlestore"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@drizzle-team/brocli": "^0.10.2",
|
|
57
|
+
"@js-temporal/polyfill": "^0.5.1",
|
|
58
|
+
"esbuild": "^0.25.10",
|
|
59
|
+
"esbuild-register": "^3.6.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@aws-sdk/client-rds-data": "^3.556.0",
|
|
63
|
+
"@cloudflare/workers-types": "^4.20230518.0",
|
|
64
|
+
"@electric-sql/pglite": "^0.2.12",
|
|
65
|
+
"@hono/node-server": "^1.9.0",
|
|
66
|
+
"@hono/zod-validator": "^0.2.1",
|
|
67
|
+
"@libsql/client": "^0.10.0",
|
|
68
|
+
"@neondatabase/serverless": "^1.0.2",
|
|
69
|
+
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
70
|
+
"@planetscale/database": "^1.19.0",
|
|
71
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
72
|
+
"@types/bun": "^1.3.0",
|
|
73
|
+
"@types/dockerode": "^3.3.28",
|
|
74
|
+
"@types/glob": "^8.1.0",
|
|
75
|
+
"@types/json-diff": "^1.0.3",
|
|
76
|
+
"@types/micromatch": "^4.0.9",
|
|
77
|
+
"@types/minimatch": "^5.1.2",
|
|
78
|
+
"@types/mssql": "^9.1.4",
|
|
79
|
+
"@types/node": "^24.7.2",
|
|
80
|
+
"@types/pg": "^8.10.7",
|
|
81
|
+
"@types/pluralize": "^0.0.33",
|
|
82
|
+
"@types/semver": "^7.5.5",
|
|
83
|
+
"@types/uuid": "^9.0.8",
|
|
84
|
+
"@types/ws": "^8.5.10",
|
|
85
|
+
"@vercel/postgres": "^0.8.0",
|
|
86
|
+
"ava": "^5.1.0",
|
|
87
|
+
"better-sqlite3": "^11.9.1",
|
|
88
|
+
"bun-types": "^0.6.6",
|
|
89
|
+
"camelcase": "^7.0.1",
|
|
90
|
+
"chalk": "^5.2.0",
|
|
91
|
+
"commander": "^12.1.0",
|
|
92
|
+
"dockerode": "^4.0.6",
|
|
93
|
+
"dotenv": "^16.0.3",
|
|
94
|
+
"drizzle-kit": "^0.31.6",
|
|
95
|
+
"drizzle-orm": "workspace:./drizzle-orm/dist",
|
|
96
|
+
"env-paths": "^3.0.0",
|
|
97
|
+
"esbuild-node-externals": "^1.9.0",
|
|
98
|
+
"gel": "^2.0.0",
|
|
99
|
+
"get-port": "^6.1.2",
|
|
100
|
+
"glob": "^8.1.0",
|
|
101
|
+
"hanji": "^0.0.5",
|
|
102
|
+
"hono": "^4.7.9",
|
|
103
|
+
"json-diff": "1.0.6",
|
|
104
|
+
"micromatch": "^4.0.8",
|
|
105
|
+
"minimatch": "^7.4.3",
|
|
106
|
+
"mssql": "^12.0.0",
|
|
107
|
+
"mysql2": "3.14.1",
|
|
108
|
+
"node-fetch": "^3.3.2",
|
|
109
|
+
"ohm-js": "^17.1.0",
|
|
110
|
+
"orm044": "npm:drizzle-orm@0.44.1",
|
|
111
|
+
"pg": "^8.11.5",
|
|
112
|
+
"pluralize": "^8.0.0",
|
|
113
|
+
"postgres": "^3.4.4",
|
|
114
|
+
"prettier": "^3.5.3",
|
|
115
|
+
"semver": "^7.7.2",
|
|
116
|
+
"tsup": "^8.3.5",
|
|
117
|
+
"tsx": "^4.20.6",
|
|
118
|
+
"typescript": "^5.9.3",
|
|
119
|
+
"uuid": "^9.0.1",
|
|
120
|
+
"ws": "^8.18.2",
|
|
121
|
+
"zod": "^3.20.2",
|
|
122
|
+
"zx": "^8.3.2"
|
|
123
|
+
},
|
|
124
|
+
"exports": {
|
|
125
|
+
".": {
|
|
126
|
+
"import": {
|
|
127
|
+
"types": "./index.d.mts",
|
|
128
|
+
"default": "./index.mjs"
|
|
129
|
+
},
|
|
130
|
+
"require": {
|
|
131
|
+
"types": "./index.d.ts",
|
|
132
|
+
"default": "./index.js"
|
|
133
|
+
},
|
|
134
|
+
"types": "./index.d.mts",
|
|
135
|
+
"default": "./index.mjs"
|
|
136
|
+
},
|
|
137
|
+
"./api-postgres": {
|
|
138
|
+
"import": {
|
|
139
|
+
"types": "./api-postgres.d.mts",
|
|
140
|
+
"default": "./api-postgres.mjs"
|
|
141
|
+
},
|
|
142
|
+
"require": {
|
|
143
|
+
"types": "./api-postgres.d.ts",
|
|
144
|
+
"default": "./api-postgres.js"
|
|
145
|
+
},
|
|
146
|
+
"types": "./api-postgres.d.mts",
|
|
147
|
+
"default": "./api-postgres.mjs"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
145
150
|
}
|