(tables: ReadonlySet<string> | undefined, table: PropertyKey)
| 115 | tables === undefined || (typeof table === "string" && tables.has(table)); |
| 116 | |
| 117 | const assertAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): void => { |
| 118 | if (isAllowedTable(tables, table)) return; |
| 119 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-facing FumaDB facade rejects unavailable tables synchronously before query execution |
| 120 | throw new StorageError({ |
| 121 | message: `FumaDB table "${String(table)}" is not available through this storage boundary.`, |
| 122 | cause: undefined, |
| 123 | }); |
| 124 | }; |
| 125 | |
| 126 | const makeSafeFumaQuery = <TSchema extends AnySchema>( |
| 127 | db: FumaDb<TSchema>, |
no test coverage detected