drizzle-kit 0.20.4 → 0.20.5-e91a5f5
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +36469 -36433
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +1 -0
- package/package.json +13 -1
- 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/utils.d.ts +1 -15
- package/utils.js +3623 -52919
- 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/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 -53
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/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",
|
@@ -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
|
}
|