drizzle-kit 0.24.2-b351b91 → 0.24.2-c5d1196
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.js +1 -3
- package/api.mjs +1 -3
- package/bin.cjs +43 -7
- package/package.json +1 -1
package/api.js
CHANGED
@@ -30011,7 +30011,6 @@ The unique constraint ${source_default.underline.blue(
|
|
30011
30011
|
and m.tbl_name != '_cf_KV';
|
30012
30012
|
`
|
30013
30013
|
);
|
30014
|
-
console.log("HERE");
|
30015
30014
|
const tablesWithSeq = [];
|
30016
30015
|
const seq = await db.query(
|
30017
30016
|
`SELECT * FROM sqlite_master WHERE name != 'sqlite_sequence'
|
@@ -34764,8 +34763,7 @@ var init_cli = __esm({
|
|
34764
34763
|
schemaFilter: unionType([stringType(), stringType().array()]).optional().default(["public"]),
|
34765
34764
|
extensionsFilters: literalType("postgis").array().optional(),
|
34766
34765
|
verbose: booleanType().optional(),
|
34767
|
-
strict: booleanType().optional()
|
34768
|
-
driver: driver.optional()
|
34766
|
+
strict: booleanType().optional()
|
34769
34767
|
}).passthrough();
|
34770
34768
|
pullParams = objectType({
|
34771
34769
|
config: stringType().optional(),
|
package/api.mjs
CHANGED
@@ -30016,7 +30016,6 @@ The unique constraint ${source_default.underline.blue(
|
|
30016
30016
|
and m.tbl_name != '_cf_KV';
|
30017
30017
|
`
|
30018
30018
|
);
|
30019
|
-
console.log("HERE");
|
30020
30019
|
const tablesWithSeq = [];
|
30021
30020
|
const seq = await db.query(
|
30022
30021
|
`SELECT * FROM sqlite_master WHERE name != 'sqlite_sequence'
|
@@ -34769,8 +34768,7 @@ var init_cli = __esm({
|
|
34769
34768
|
schemaFilter: unionType([stringType(), stringType().array()]).optional().default(["public"]),
|
34770
34769
|
extensionsFilters: literalType("postgis").array().optional(),
|
34771
34770
|
verbose: booleanType().optional(),
|
34772
|
-
strict: booleanType().optional()
|
34773
|
-
driver: driver.optional()
|
34771
|
+
strict: booleanType().optional()
|
34774
34772
|
}).passthrough();
|
34775
34773
|
pullParams = objectType({
|
34776
34774
|
config: stringType().optional(),
|
package/bin.cjs
CHANGED
@@ -8665,7 +8665,7 @@ var init_utils2 = __esm({
|
|
8665
8665
|
process.exit(1);
|
8666
8666
|
}
|
8667
8667
|
};
|
8668
|
-
requiredApiVersion =
|
8668
|
+
requiredApiVersion = 8;
|
8669
8669
|
assertOrmCoreVersion = async () => {
|
8670
8670
|
try {
|
8671
8671
|
const { compatibilityVersion } = await import("drizzle-orm/version");
|
@@ -11399,8 +11399,7 @@ var init_cli = __esm({
|
|
11399
11399
|
schemaFilter: unionType([stringType(), stringType().array()]).optional().default(["public"]),
|
11400
11400
|
extensionsFilters: literalType("postgis").array().optional(),
|
11401
11401
|
verbose: booleanType().optional(),
|
11402
|
-
strict: booleanType().optional()
|
11403
|
-
driver: driver.optional()
|
11402
|
+
strict: booleanType().optional()
|
11404
11403
|
}).passthrough();
|
11405
11404
|
pullParams = objectType({
|
11406
11405
|
config: stringType().optional(),
|
@@ -17461,7 +17460,6 @@ var init_utils4 = __esm({
|
|
17461
17460
|
const raw2 = flattenDatabaseCredentials(
|
17462
17461
|
from === "config" ? await drizzleConfigFromFile(options.config) : options
|
17463
17462
|
);
|
17464
|
-
raw2.driver ||= options.driver;
|
17465
17463
|
raw2.verbose ||= options.verbose;
|
17466
17464
|
raw2.strict ||= options.strict;
|
17467
17465
|
const parsed = pushParams.safeParse(raw2);
|
@@ -17640,7 +17638,7 @@ var init_utils4 = __esm({
|
|
17640
17638
|
process.exit(1);
|
17641
17639
|
}
|
17642
17640
|
return {
|
17643
|
-
dialect:
|
17641
|
+
dialect: dialect7,
|
17644
17642
|
out: config.out,
|
17645
17643
|
breakpoints: config.breakpoints,
|
17646
17644
|
casing: config.casing,
|
@@ -19813,7 +19811,6 @@ The unique constraint ${source_default.underline.blue(
|
|
19813
19811
|
and m.tbl_name != '_cf_KV';
|
19814
19812
|
`
|
19815
19813
|
);
|
19816
|
-
console.log("HERE");
|
19817
19814
|
const tablesWithSeq = [];
|
19818
19815
|
const seq = await db.query(
|
19819
19816
|
`SELECT * FROM sqlite_master WHERE name != 'sqlite_sequence'
|
@@ -64267,6 +64264,45 @@ var init_connections = __esm({
|
|
64267
64264
|
assertUnreachable(driver2);
|
64268
64265
|
}
|
64269
64266
|
}
|
64267
|
+
if (await checkPackage("@libsql/client")) {
|
64268
|
+
const { createClient } = await import("@libsql/client");
|
64269
|
+
const { drizzle } = await import("drizzle-orm/libsql");
|
64270
|
+
const { migrate: migrate2 } = await import("drizzle-orm/libsql/migrator");
|
64271
|
+
const client = createClient({
|
64272
|
+
url: credentials2.url
|
64273
|
+
});
|
64274
|
+
const drzl = drizzle(client);
|
64275
|
+
const migrateFn = async (config) => {
|
64276
|
+
return migrate2(drzl, config);
|
64277
|
+
};
|
64278
|
+
const db = {
|
64279
|
+
query: async (sql, params) => {
|
64280
|
+
const res = await client.execute({ sql, args: params || [] });
|
64281
|
+
return res.rows;
|
64282
|
+
},
|
64283
|
+
run: async (query) => {
|
64284
|
+
await client.execute(query);
|
64285
|
+
},
|
64286
|
+
batchWithPragma: async (queries) => {
|
64287
|
+
await client.migrate(queries);
|
64288
|
+
}
|
64289
|
+
};
|
64290
|
+
const proxy = {
|
64291
|
+
proxy: async (params) => {
|
64292
|
+
const preparedParams = prepareSqliteParams(params.params);
|
64293
|
+
const result = await client.execute({
|
64294
|
+
sql: params.sql,
|
64295
|
+
args: preparedParams
|
64296
|
+
});
|
64297
|
+
if (params.mode === "array") {
|
64298
|
+
return result.rows.map((row) => Object.values(row));
|
64299
|
+
} else {
|
64300
|
+
return result.rows;
|
64301
|
+
}
|
64302
|
+
}
|
64303
|
+
};
|
64304
|
+
return { ...db, ...proxy, migrate: migrateFn };
|
64305
|
+
}
|
64270
64306
|
if (await checkPackage("better-sqlite3")) {
|
64271
64307
|
const { default: Database } = await import("better-sqlite3");
|
64272
64308
|
const { drizzle } = await import("drizzle-orm/better-sqlite3");
|
@@ -87309,7 +87345,7 @@ init_utils2();
|
|
87309
87345
|
var version2 = async () => {
|
87310
87346
|
const { npmVersion } = await ormCoreVersions();
|
87311
87347
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
87312
|
-
const envVersion = "0.24.2-
|
87348
|
+
const envVersion = "0.24.2-c5d1196";
|
87313
87349
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
87314
87350
|
const versions = `drizzle-kit: ${kitVersion}
|
87315
87351
|
${ormVersion}`;
|