(tables: ReadonlySet<string> | undefined, table: PropertyKey)
| 138 | tables === undefined || (typeof table === "string" && tables.has(table)); |
| 139 | |
| 140 | const assertAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): void => { |
| 141 | if (isAllowedTable(tables, table)) return; |
| 142 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-facing FumaDB facade rejects unavailable tables synchronously before query execution |
| 143 | throw new StorageError({ |
| 144 | message: `FumaDB table "${String(table)}" is not available through this storage boundary.`, |
| 145 | cause: undefined, |
| 146 | }); |
| 147 | }; |
| 148 | |
| 149 | const makeSafeFumaQuery = <TSchema extends AnySchema>( |
| 150 | db: FumaDb<TSchema>, |
no test coverage detected