nexusql 0.9.3 → 0.9.5

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
@@ -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) {
@@ -3705,7 +3713,7 @@ ${commentSql}`;
3705
3713
  }
3706
3714
  spinner.succeed("Checked comment changes");
3707
3715
  } catch (error) {
3708
- spinner.fail("Failed to generate migration diff");
3716
+ spinner.fail(`Failed to generate migration diff: ${error}`);
3709
3717
  throw error;
3710
3718
  } finally {
3711
3719
  spinner.start("Cleaning up temp database...");