longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
13 lines • 844 B
TypeScript
import { TableSchema, FKResolver } from '../../schema/types';
import { AccessControlContext } from '../accessControl';
import { SQLConnection } from './connection';
import { SQLDialect } from './dialect';
/**
* Tenant-scoped equivalent of SheetAdapter.createFKResolver(). That resolver checks the
* referenced row within the *current context's* spreadsheet, so a same-actor FK stays inside
* one tenant's sheet rather than checking globally — this must do the identical thing via
* resolveNonAdminTenantKey(), or FK checks silently become cross-tenant existence leaks
* (see FAQ.md #13).
*/
export declare function createSQLFKResolver(connection: SQLConnection, dialect: SQLDialect, schemas: Map<string, TableSchema>, tenantColumn: string, context: AccessControlContext | undefined): FKResolver;
//# sourceMappingURL=fkResolver.d.ts.map