(row: CoreRow<"plugin_storage">)
| 774 | // --------------------------------------------------------------------------- |
| 775 | |
| 776 | const pluginStorageEntryFromRow = <T>(row: CoreRow<"plugin_storage">): PluginStorageEntry<T> => ({ |
| 777 | id: pluginStorageId({ |
| 778 | pluginId: row.plugin_id, |
| 779 | collection: row.collection, |
| 780 | key: row.key, |
| 781 | }), |
| 782 | owner: row.owner as Owner, |
| 783 | pluginId: row.plugin_id, |
| 784 | collection: row.collection, |
| 785 | key: row.key, |
| 786 | data: row.data as T, |
| 787 | createdAt: row.created_at instanceof Date ? row.created_at : new Date(row.created_at), |
| 788 | updatedAt: row.updated_at instanceof Date ? row.updated_at : new Date(row.updated_at), |
| 789 | }); |
| 790 | |
| 791 | const pluginStorageIndexSpecFields = (spec: PluginStorageRuntimeIndexSpec): readonly string[] => |
| 792 | typeof spec === "string" ? [spec] : spec; |
no test coverage detected