nexusql 0.9.4 → 0.9.6

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 CHANGED
@@ -1854,7 +1854,7 @@ var Database = class _Database {
1854
1854
  async installExtensions(extensions) {
1855
1855
  for (const ext of extensions) {
1856
1856
  try {
1857
- await this.exec(`CREATE EXTENSION IF NOT EXISTS "${ext}";`);
1857
+ await this.exec(`CREATE EXTENSION IF NOT EXISTS ${ext};`);
1858
1858
  const result = await this.queryParams(
1859
1859
  `SELECT EXISTS(SELECT 1 FROM pg_extension WHERE extname = $1) as exists`,
1860
1860
  [ext]
@@ -3667,6 +3667,14 @@ async function gen(options = {}) {
3667
3667
  }
3668
3668
  spinner.succeed("Installed db extensions");
3669
3669
  spinner.start("Loading schema into temp database...");
3670
+ if (targetSql.toLowerCase().includes("vector")) {
3671
+ const vectorLines = targetSql.split("\n").filter(
3672
+ (line) => line.toLowerCase().includes("vector")
3673
+ );
3674
+ console.log("\n[DEBUG] SQL lines with 'vector':");
3675
+ vectorLines.forEach((line) => console.log(" ", line.trim()));
3676
+ console.log("");
3677
+ }
3670
3678
  await tempDb.exec(targetSql);
3671
3679
  spinner.succeed("Loaded schema into temp database");
3672
3680
  if (options.verbose) {