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