@prisma/cli-init 0.0.0-dev.202512162210 → 0.0.0-dev.202512162225
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/dist/index.js +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2546,8 +2546,10 @@ function getConnectionString(port, queryParams) {
|
|
|
2546
2546
|
return `${BASE_DB_URL}:${port}/${BASE_PGLITE_OPTIONS.database}?${queryParams.toString()}`;
|
|
2547
2547
|
}
|
|
2548
2548
|
async function getDB(dataDir, debug3) {
|
|
2549
|
-
const { PGlite } = await
|
|
2550
|
-
|
|
2549
|
+
const [{ PGlite }, { vector }] = await Promise.all([
|
|
2550
|
+
import("@electric-sql/pglite"),
|
|
2551
|
+
import("@electric-sql/pglite/vector")
|
|
2552
|
+
]);
|
|
2551
2553
|
return await PGlite.create({
|
|
2552
2554
|
database: BASE_PGLITE_OPTIONS.database,
|
|
2553
2555
|
dataDir,
|
|
@@ -2558,8 +2560,10 @@ async function getDB(dataDir, debug3) {
|
|
|
2558
2560
|
});
|
|
2559
2561
|
}
|
|
2560
2562
|
async function getShadowDB(_dataDir, debug3) {
|
|
2561
|
-
const { PGlite } = await
|
|
2562
|
-
|
|
2563
|
+
const [{ PGlite }, { vector }] = await Promise.all([
|
|
2564
|
+
import("@electric-sql/pglite"),
|
|
2565
|
+
import("@electric-sql/pglite/vector")
|
|
2566
|
+
]);
|
|
2563
2567
|
return await PGlite.create({
|
|
2564
2568
|
database: BASE_PGLITE_OPTIONS.database,
|
|
2565
2569
|
dataDir: "memory://",
|