(tables: ReadonlySet<string> | undefined, table: PropertyKey)
| 323 | tables === undefined || (typeof table === "string" && tables.has(table)); |
| 324 | |
| 325 | const assertAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): void => { |
| 326 | if (isAllowedTable(tables, table)) return; |
| 327 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-facing FumaDB facade rejects unavailable tables synchronously before query execution |
| 328 | throw new StorageError({ |
| 329 | message: `FumaDB table "${String(table)}" is not available through this storage boundary.`, |
| 330 | cause: undefined, |
| 331 | }); |
| 332 | }; |
| 333 | |
| 334 | const makeSafeFumaQuery = <TSchema extends AnySchema>( |
| 335 | db: FumaDb<TSchema>, |
no test coverage detected