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/cli.js CHANGED
@@ -3427,6 +3427,14 @@ async function gen(options = {}) {
3427
3427
  }
3428
3428
  spinner.succeed("Installed db extensions");
3429
3429
  spinner.start("Loading schema into temp database...");
3430
+ if (targetSql.toLowerCase().includes("vector")) {
3431
+ const vectorLines = targetSql.split("\n").filter(
3432
+ (line) => line.toLowerCase().includes("vector")
3433
+ );
3434
+ console.log("\n[DEBUG] SQL lines with 'vector':");
3435
+ vectorLines.forEach((line) => console.log(" ", line.trim()));
3436
+ console.log("");
3437
+ }
3430
3438
  await tempDb.exec(targetSql);
3431
3439
  spinner.succeed("Loaded schema into temp database");
3432
3440
  if (options.verbose) {
@@ -3465,7 +3473,7 @@ ${commentSql}`;
3465
3473
  }
3466
3474
  spinner.succeed("Checked comment changes");
3467
3475
  } catch (error) {
3468
- spinner.fail("Failed to generate migration diff");
3476
+ spinner.fail(`Failed to generate migration diff: ${error}`);
3469
3477
  throw error;
3470
3478
  } finally {
3471
3479
  spinner.start("Cleaning up temp database...");