drizzle-kit 0.20.4-dea9219 → 0.20.5-e91a5f5
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +36545 -36586
- package/cli/commands/pgIntrospect.d.ts +1 -6
- package/cli/commands/sqliteIntrospect.d.ts +1 -6
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +1 -0
- package/introspect.d.ts +4 -0
- package/package.json +15 -3
- package/payload.js +36761 -0
- package/payload.mjs +36809 -0
- package/serializer/mysqlImports.d.ts +5 -0
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +4 -0
- package/sqlite-introspect.d.ts +5 -0
- package/utils-studio.js +1 -1
- package/utils-studio.mjs +1 -1
- package/utils.d.ts +1 -15
- package/utils.js +3633 -52934
- package/utils.mjs +8055 -0
- package/cli/commands/pgPushUtils.d.ts +0 -14
- package/cli/selector-ui.d.ts +0 -13
- package/cli/utils.d.ts +0 -11
- package/cli/validations/mysql.d.ts +0 -365
- package/cli/validations/sqlite.d.ts +0 -220
- package/cli/validations/studio.d.ts +0 -593
- package/introspect-pg.d.ts +0 -9
- package/introspect-sqlite.d.ts +0 -10
- package/orm-extenstions/d1-driver/driver.d.ts +0 -8
- package/orm-extenstions/d1-driver/session.d.ts +0 -51
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
- package/serializer/studioUtils.d.ts +0 -65
@@ -112,10 +112,5 @@ export declare const pgIntrospect: (config: PgConfigIntrospect, filters: string[
|
|
112
112
|
values: Record<string, string>;
|
113
113
|
}>;
|
114
114
|
};
|
115
|
-
ts:
|
116
|
-
file: string;
|
117
|
-
imports: string;
|
118
|
-
decalrations: string;
|
119
|
-
schemaEntry: string;
|
120
|
-
};
|
115
|
+
ts: string;
|
121
116
|
}>;
|
@@ -51,12 +51,7 @@ export declare const sqliteIntrospect: (config: SQLiteCliConfig, filters: string
|
|
51
51
|
};
|
52
52
|
enums: {};
|
53
53
|
};
|
54
|
-
ts:
|
55
|
-
file: string;
|
56
|
-
imports: string;
|
57
|
-
decalrations: string;
|
58
|
-
schemaEntry: string;
|
59
|
-
};
|
54
|
+
ts: string;
|
60
55
|
}>;
|
61
56
|
export declare const sqlitePushIntrospect: (client: DrizzleDbClient, filters: string[]) => Promise<{
|
62
57
|
schema: {
|
package/drivers/index.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
import type { Client } from "@libsql/client";
|
2
|
+
import { BetterSQLite3Database } from "drizzle-orm/better-sqlite3";
|
3
|
+
import { MySql2Database } from "drizzle-orm/mysql2";
|
2
4
|
import type { PgDatabase } from "drizzle-orm/pg-core";
|
3
5
|
import type { Client as PgClient } from "pg";
|
4
6
|
export declare abstract class DrizzleDbClient<T = any> {
|
@@ -11,10 +13,22 @@ export declare class DrizzleORMPgClient extends DrizzleDbClient<PgDatabase<any>>
|
|
11
13
|
query<K = any>(query: string, values?: any[] | undefined): Promise<K[]>;
|
12
14
|
run(query: string): Promise<void>;
|
13
15
|
}
|
16
|
+
export declare class DrizzleORMMySQLClient extends DrizzleDbClient<MySql2Database<any>> {
|
17
|
+
query<K = any>(query: string, values?: any[] | undefined): Promise<K[]>;
|
18
|
+
run(query: string): Promise<void>;
|
19
|
+
}
|
20
|
+
export declare class DrizzleORMSQLiteClient extends DrizzleDbClient<BetterSQLite3Database<any>> {
|
21
|
+
query<K = any>(query: string, values?: any[] | undefined): Promise<K[]>;
|
22
|
+
run(query: string): Promise<void>;
|
23
|
+
}
|
14
24
|
export declare class BetterSqlite extends DrizzleDbClient {
|
15
25
|
run(query: string): Promise<void>;
|
16
26
|
query(query: string): Promise<any[]>;
|
17
27
|
}
|
28
|
+
export declare class MySQL2Client extends DrizzleDbClient {
|
29
|
+
run(query: string): Promise<void>;
|
30
|
+
query(query: string): Promise<any>;
|
31
|
+
}
|
18
32
|
export declare class TursoSqlite extends DrizzleDbClient<Client> {
|
19
33
|
run(query: string): Promise<void>;
|
20
34
|
query(query: string): Promise<any[]>;
|
package/global.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
1
|
export declare const originUUID = "00000000-0000-0000-0000-000000000000";
|
2
2
|
export declare const snapshotVersion = "5";
|
3
3
|
export declare function assertUnreachable(x: never): never;
|
4
|
+
export declare const mapValues: <IN, OUT>(obj: Record<string, IN>, map: (input: IN) => OUT) => Record<string, OUT>;
|
package/introspect.d.ts
ADDED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.20.
|
3
|
+
"version": "0.20.5-e91a5f5",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"packit": "pnpm build && cp package.json dist/ && cd dist && pnpm pack",
|
42
42
|
"tsc": "tsc -p tsconfig.build.json",
|
43
43
|
"pub": "cp package.json readme.md dist/ && cd dist && npm publish",
|
44
|
-
"studio": "
|
44
|
+
"studio": "./dist/index.cjs studio --verbose",
|
45
45
|
"studio:dev": "tsx ./src/cli/index.ts studio --verbose"
|
46
46
|
},
|
47
47
|
"ava": {
|
@@ -56,7 +56,7 @@
|
|
56
56
|
]
|
57
57
|
},
|
58
58
|
"dependencies": {
|
59
|
-
"@drizzle-team/studio": "^0.0.
|
59
|
+
"@drizzle-team/studio": "^0.0.27",
|
60
60
|
"@esbuild-kit/esm-loader": "^2.5.5",
|
61
61
|
"camelcase": "^7.0.1",
|
62
62
|
"chalk": "^5.2.0",
|
@@ -124,6 +124,18 @@
|
|
124
124
|
},
|
125
125
|
"types": "./utils-studio.d.mts",
|
126
126
|
"default": "./utils-studio.mjs"
|
127
|
+
},
|
128
|
+
"./payload": {
|
129
|
+
"import": {
|
130
|
+
"types": "./payload.d.mts",
|
131
|
+
"default": "./payload.mjs"
|
132
|
+
},
|
133
|
+
"require": {
|
134
|
+
"types": "./payload.d.ts",
|
135
|
+
"default": "./payload.js"
|
136
|
+
},
|
137
|
+
"types": "./payload.d.mts",
|
138
|
+
"default": "./payload.mjs"
|
127
139
|
}
|
128
140
|
}
|
129
141
|
}
|