drizzle-kit 1.0.0-beta.20 → 1.0.0-beta.20-b96bcef
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-mysql.d.mts +2 -2
- package/api-mysql.d.ts +2 -2
- package/api-mysql.js +1 -1
- package/api-mysql.mjs +5 -7
- package/api-postgres.d.mts +92 -92
- package/api-postgres.d.ts +92 -92
- package/api-postgres.js +1 -1
- package/api-postgres.mjs +47 -49
- package/api-sqlite.js +1 -1
- package/api-sqlite.mjs +5 -7
- package/bin.cjs +5 -7
- package/{connections-BXtjFId4.js → connections-DZ_wIgTM.js} +5 -7
- package/package.json +1 -1
- package/{studio-Dkh4wj4n.js → studio-C-r-yw9x.js} +3 -3
package/api-mysql.d.mts
CHANGED
|
@@ -39,9 +39,9 @@ declare const mysqlCredentials: ZodUnion<[ZodObject<{
|
|
|
39
39
|
}, "strip", ZodTypeAny, {
|
|
40
40
|
host: string;
|
|
41
41
|
database: string;
|
|
42
|
-
password?: string | undefined;
|
|
43
42
|
port?: number | undefined;
|
|
44
43
|
user?: string | undefined;
|
|
44
|
+
password?: string | undefined;
|
|
45
45
|
ssl?: string | {
|
|
46
46
|
pfx?: string | undefined;
|
|
47
47
|
key?: string | undefined;
|
|
@@ -55,9 +55,9 @@ declare const mysqlCredentials: ZodUnion<[ZodObject<{
|
|
|
55
55
|
}, {
|
|
56
56
|
host: string;
|
|
57
57
|
database: string;
|
|
58
|
-
password?: string | undefined;
|
|
59
58
|
port?: number | undefined;
|
|
60
59
|
user?: string | undefined;
|
|
60
|
+
password?: string | undefined;
|
|
61
61
|
ssl?: string | {
|
|
62
62
|
pfx?: string | undefined;
|
|
63
63
|
key?: string | undefined;
|
package/api-mysql.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ declare const mysqlCredentials: ZodUnion<[ZodObject<{
|
|
|
39
39
|
}, "strip", ZodTypeAny, {
|
|
40
40
|
host: string;
|
|
41
41
|
database: string;
|
|
42
|
-
password?: string | undefined;
|
|
43
42
|
port?: number | undefined;
|
|
44
43
|
user?: string | undefined;
|
|
44
|
+
password?: string | undefined;
|
|
45
45
|
ssl?: string | {
|
|
46
46
|
pfx?: string | undefined;
|
|
47
47
|
key?: string | undefined;
|
|
@@ -55,9 +55,9 @@ declare const mysqlCredentials: ZodUnion<[ZodObject<{
|
|
|
55
55
|
}, {
|
|
56
56
|
host: string;
|
|
57
57
|
database: string;
|
|
58
|
-
password?: string | undefined;
|
|
59
58
|
port?: number | undefined;
|
|
60
59
|
user?: string | undefined;
|
|
60
|
+
password?: string | undefined;
|
|
61
61
|
ssl?: string | {
|
|
62
62
|
pfx?: string | undefined;
|
|
63
63
|
key?: string | undefined;
|
package/api-mysql.js
CHANGED
|
@@ -6,7 +6,7 @@ const startStudioServer = async (imports, credentials, options) => {
|
|
|
6
6
|
const { is } = require("drizzle-orm");
|
|
7
7
|
const { MySqlTable, getTableConfig } = require("drizzle-orm/mysql-core");
|
|
8
8
|
const { Relations } = require("drizzle-orm/_relations");
|
|
9
|
-
const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-
|
|
9
|
+
const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-C-r-yw9x.js"));
|
|
10
10
|
const mysqlSchema = {};
|
|
11
11
|
const relations = {};
|
|
12
12
|
Object.entries(imports).forEach(([k, t]) => {
|
package/api-mysql.mjs
CHANGED
|
@@ -212219,7 +212219,7 @@ var init_connections = __esmMin((() => {
|
|
|
212219
212219
|
secretArn: credentials.secretArn
|
|
212220
212220
|
};
|
|
212221
212221
|
const rdsClient = new RDSDataClient();
|
|
212222
|
-
const session = new AwsDataApiSession(rdsClient, new PgDialect(), {},
|
|
212222
|
+
const session = new AwsDataApiSession(rdsClient, new PgDialect(), {}, config, void 0);
|
|
212223
212223
|
const db = drizzle({
|
|
212224
212224
|
client: rdsClient,
|
|
212225
212225
|
...config
|
|
@@ -212228,19 +212228,17 @@ var init_connections = __esmMin((() => {
|
|
|
212228
212228
|
return migrate(db, config);
|
|
212229
212229
|
};
|
|
212230
212230
|
const query = async (sql, params) => {
|
|
212231
|
-
return
|
|
212231
|
+
return session.prepareQuery({
|
|
212232
212232
|
sql,
|
|
212233
212233
|
params: params ?? []
|
|
212234
|
-
},
|
|
212234
|
+
}, "objects", false, void 0).execute();
|
|
212235
212235
|
};
|
|
212236
212236
|
const proxy = async (params) => {
|
|
212237
|
-
|
|
212237
|
+
return session.prepareQuery({
|
|
212238
212238
|
sql: params.sql,
|
|
212239
212239
|
params: params.params ?? [],
|
|
212240
212240
|
typings: params.typings
|
|
212241
|
-
},
|
|
212242
|
-
if (params.mode === "array") return (await prepared.values()).rows;
|
|
212243
|
-
return (await prepared.execute()).rows;
|
|
212241
|
+
}, params.mode === "array" ? "arrays" : "objects", false, void 0).execute();
|
|
212244
212242
|
};
|
|
212245
212243
|
const transactionProxy = async (_queries) => {
|
|
212246
212244
|
throw new Error("Transaction not supported");
|