longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
18 lines • 944 B
TypeScript
import { ActorPermission } from '../../schema/types';
import { SQLAdapterBase } from './sqlAdapterBase';
export interface MySQLAdapterConfig {
/** e.g. mysql://user:pass@host:3306/db. Ignored if `pool` is provided. Falls back to $DATABASE_URL. */
connectionString?: string;
/** Pass a pre-built mysql2/promise pool instead of letting this adapter construct one. */
pool?: unknown;
/** Column injected into every non-admin table to scope rows to a tenant. Default: 'tenant_id'. */
tenantColumn?: string;
permissions?: Record<string, ActorPermission>;
}
/**
* `mysql2` is an optional peer dependency, lazy-required only here — see postgresAdapter.ts's
* matching comment for why (Phase 16.2). Uses the `mysql2/promise` entry point since
* SQLConnection.query() is promise-based.
*/
export declare function createMySQLAdapter(config: MySQLAdapterConfig): SQLAdapterBase;
//# sourceMappingURL=mysqlAdapter.d.ts.map