(row: CoreRow<"plugin_storage">)
| 999 | // --------------------------------------------------------------------------- |
| 1000 | |
| 1001 | const pluginStorageEntryFromRow = <T>(row: CoreRow<"plugin_storage">): PluginStorageEntry<T> => ({ |
| 1002 | id: pluginStorageId({ |
| 1003 | pluginId: row.plugin_id, |
| 1004 | collection: row.collection, |
| 1005 | key: row.key, |
| 1006 | }), |
| 1007 | owner: row.owner as Owner, |
| 1008 | pluginId: row.plugin_id, |
| 1009 | collection: row.collection, |
| 1010 | key: row.key, |
| 1011 | data: row.data as T, |
| 1012 | createdAt: row.created_at instanceof Date ? row.created_at : new Date(row.created_at), |
| 1013 | updatedAt: row.updated_at instanceof Date ? row.updated_at : new Date(row.updated_at), |
| 1014 | }); |
| 1015 | |
| 1016 | const pluginStorageIndexSpecFields = (spec: PluginStorageRuntimeIndexSpec): readonly string[] => |
| 1017 | typeof spec === "string" ? [spec] : spec; |
no test coverage detected