import { type ParsedArgs } from './args.js'; /** * `nexus db sql | status | migrate`. * * `sql` prints the Postgres schema, so the CLI needs no driver and the schema can go through the * application's own review and tooling: `nexus db sql | psql "$URL"`. `status` and `migrate` reach * the database through a module the application writes, which exports its own client: * * ```js * // db.mjs * import pg from 'pg'; * export const client = new pg.Pool({ connectionString: process.env.DATABASE_URL }); * export const close = () => client.end(); * ``` * * The module may also export `dialect` (`postgres` or `sqlite`), a `transaction` function (see * `PostgresMigrateOptions`), and `migrations`, a list replacing the bundled ones, for stores on * custom tables. */ export declare function runDbCommand(subcommand: string | undefined, args: ParsedArgs): Promise;