(row: CoreRow<"plugin_storage">)
| 1051 | // --------------------------------------------------------------------------- |
| 1052 | |
| 1053 | const pluginStorageEntryFromRow = <T>(row: CoreRow<"plugin_storage">): PluginStorageEntry<T> => ({ |
| 1054 | id: pluginStorageId({ |
| 1055 | pluginId: row.plugin_id, |
| 1056 | collection: row.collection, |
| 1057 | key: row.key, |
| 1058 | }), |
| 1059 | owner: row.owner as Owner, |
| 1060 | pluginId: row.plugin_id, |
| 1061 | collection: row.collection, |
| 1062 | key: row.key, |
| 1063 | data: row.data as T, |
| 1064 | createdAt: row.created_at instanceof Date ? row.created_at : new Date(row.created_at), |
| 1065 | updatedAt: row.updated_at instanceof Date ? row.updated_at : new Date(row.updated_at), |
| 1066 | }); |
| 1067 | |
| 1068 | const pluginStorageIndexSpecFields = (spec: PluginStorageRuntimeIndexSpec): readonly string[] => |
| 1069 | typeof spec === "string" ? [spec] : spec; |
no test coverage detected