orchid-orm 1.50.5 → 1.52.0

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.
@@ -2515,7 +2515,7 @@ const generate = async (options, config, args, afterPull) => {
2515
2515
  const [adapter] = adapters;
2516
2516
  const currentSchema = adapter.schema ?? "public";
2517
2517
  const db = await getDbFromConfig(config, dbPath);
2518
- const { columnTypes, internal } = db.$queryBuilder;
2518
+ const { columnTypes, internal } = db.$qb;
2519
2519
  const codeItems = await getActualItems(
2520
2520
  db,
2521
2521
  currentSchema,
@@ -2600,7 +2600,7 @@ const getDbFromConfig = async (config, dbPath) => {
2600
2600
  url.pathToFileURL(path.resolve(config.basePath, dbPath)).toString()
2601
2601
  );
2602
2602
  const db = module[config.dbExportedAs ?? "db"];
2603
- if (!db?.$queryBuilder) {
2603
+ if (!db?.$qb) {
2604
2604
  throw new Error(
2605
2605
  `Unable to import OrchidORM instance as ${config.dbExportedAs ?? "db"} from ${config.dbPath}`
2606
2606
  );