(row: CoreRow<"plugin_storage">)
| 1174 | // --------------------------------------------------------------------------- |
| 1175 | |
| 1176 | const pluginStorageEntryFromRow = <T>(row: CoreRow<"plugin_storage">): PluginStorageEntry<T> => ({ |
| 1177 | id: pluginStorageId({ |
| 1178 | pluginId: row.plugin_id, |
| 1179 | collection: row.collection, |
| 1180 | key: row.key, |
| 1181 | }), |
| 1182 | owner: row.owner as Owner, |
| 1183 | pluginId: row.plugin_id, |
| 1184 | collection: row.collection, |
| 1185 | key: row.key, |
| 1186 | data: row.data as T, |
| 1187 | createdAt: row.created_at instanceof Date ? row.created_at : new Date(row.created_at), |
| 1188 | updatedAt: row.updated_at instanceof Date ? row.updated_at : new Date(row.updated_at), |
| 1189 | }); |
| 1190 | |
| 1191 | const pluginStorageIndexSpecFields = (spec: PluginStorageRuntimeIndexSpec): readonly string[] => |
| 1192 | typeof spec === "string" ? [spec] : spec; |
no test coverage detected