import { defineConfig, MikroORM } from '@mikro-orm/core';
import { PostgreSqlDriver } from './PostgreSqlDriver.js';
/** Creates a type-safe configuration object for the PostgreSQL driver. */
export function definePostgreSqlConfig(options) {
  return defineConfig({ driver: PostgreSqlDriver, ...options });
}
/**
 * @inheritDoc
 */
export class PostgreSqlMikroORM extends MikroORM {
  /**
   * @inheritDoc
   */
  static async init(options) {
    return super.init(definePostgreSqlConfig(options));
  }
  /**
   * @inheritDoc
   */
  constructor(options) {
    super(definePostgreSqlConfig(options));
  }
}
