(tables: FumaTables)
| 725 | storageFailureFromUnknown(`${hook} failed for plugin ${pluginId}`, cause); |
| 726 | |
| 727 | const createDefaultMemoryDb = (tables: FumaTables): ExecutorDb => { |
| 728 | const version = "1.0.0"; |
| 729 | const latestSchema = fumaSchema<string, FumaTables, RelationsMap<FumaTables>>({ |
| 730 | version, |
| 731 | tables, |
| 732 | }); |
| 733 | const factory = fumadb({ |
| 734 | namespace: "executor_memory", |
| 735 | schemas: [latestSchema], |
| 736 | }); |
| 737 | |
| 738 | // oxlint-disable-next-line executor/no-double-cast -- boundary: fumadb's generic ORM client type doesn't structurally match the FumaDb facade |
| 739 | const db = factory.client(memoryAdapter()).orm(version) as unknown as FumaDb; |
| 740 | return { db }; |
| 741 | }; |
| 742 | |
| 743 | // --------------------------------------------------------------------------- |
| 744 | // JSON helpers + row → public projection conversions |
no test coverage detected