@prisma/cli-init 0.0.0-dev.202512162203 → 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 +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2546,21 +2546,29 @@ 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
|
|
2549
|
+
const [{ PGlite }, { vector }] = await Promise.all([
|
|
2550
|
+
import("@electric-sql/pglite"),
|
|
2551
|
+
import("@electric-sql/pglite/vector")
|
|
2552
|
+
]);
|
|
2550
2553
|
return await PGlite.create({
|
|
2551
2554
|
database: BASE_PGLITE_OPTIONS.database,
|
|
2552
2555
|
dataDir,
|
|
2553
2556
|
debug: debug3 ? 5 : void 0,
|
|
2557
|
+
extensions: { vector },
|
|
2554
2558
|
relaxedDurability: false,
|
|
2555
2559
|
username: BASE_PGLITE_OPTIONS.username
|
|
2556
2560
|
});
|
|
2557
2561
|
}
|
|
2558
2562
|
async function getShadowDB(_dataDir, debug3) {
|
|
2559
|
-
const { PGlite } = await
|
|
2563
|
+
const [{ PGlite }, { vector }] = await Promise.all([
|
|
2564
|
+
import("@electric-sql/pglite"),
|
|
2565
|
+
import("@electric-sql/pglite/vector")
|
|
2566
|
+
]);
|
|
2560
2567
|
return await PGlite.create({
|
|
2561
2568
|
database: BASE_PGLITE_OPTIONS.database,
|
|
2562
2569
|
dataDir: "memory://",
|
|
2563
2570
|
debug: debug3 ? 5 : void 0,
|
|
2571
|
+
extensions: { vector },
|
|
2564
2572
|
relaxedDurability: false,
|
|
2565
2573
|
username: BASE_PGLITE_OPTIONS.username
|
|
2566
2574
|
});
|