(schema: TableSchema, columnOrder: string[] | undefined)
| 1077 | |
| 1078 | /** Throws if the schema has any invariant violations. Convenience for callers. */ |
| 1079 | export function assertValidSchema(schema: TableSchema, columnOrder: string[] | undefined): void { |
| 1080 | const errs = validateSchema(schema, columnOrder) |
| 1081 | if (errs.length > 0) { |
| 1082 | throw new Error(`Schema validation failed: ${errs.join('; ')}`) |
| 1083 | } |
| 1084 | } |
no test coverage detected