longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
12 lines • 847 B
TypeScript
import { TableSchema } from '../../schema/types';
/**
* Restricts `schemas` to the tables named in a `--table` flag. Accepts a comma-separated list
* (`--table users,credentials,setup`) as well as a single name, so a caller who only needs a
* handful of tables isn't forced to operate on every table just to reach the ones they want.
* Shared by `migrate-data`'s script-generation/`--run` paths and `sync`'s per-actor/`--all-users`
* paths, which previously duplicated (or lacked) this filtering logic independently.
* Exits with an actionable error listing exactly which requested names weren't found, rather than
* silently dropping them or reporting only the first miss.
*/
export declare function filterSchemasByTable(schemas: TableSchema[], table: string | undefined): TableSchema[];
//# sourceMappingURL=filterSchemasByTable.d.ts.map