(row: CoreRow<"plugin_storage">)
| 1299 | // --------------------------------------------------------------------------- |
| 1300 | |
| 1301 | const pluginStorageEntryFromRow = <T>(row: CoreRow<"plugin_storage">): PluginStorageEntry<T> => ({ |
| 1302 | id: pluginStorageId({ |
| 1303 | pluginId: row.plugin_id, |
| 1304 | collection: row.collection, |
| 1305 | key: row.key, |
| 1306 | }), |
| 1307 | owner: row.owner as Owner, |
| 1308 | pluginId: row.plugin_id, |
| 1309 | collection: row.collection, |
| 1310 | key: row.key, |
| 1311 | data: row.data as T, |
| 1312 | createdAt: row.created_at instanceof Date ? row.created_at : new Date(row.created_at), |
| 1313 | updatedAt: row.updated_at instanceof Date ? row.updated_at : new Date(row.updated_at), |
| 1314 | }); |
| 1315 | |
| 1316 | const pluginStorageIndexSpecFields = (spec: PluginStorageRuntimeIndexSpec): readonly string[] => |
| 1317 | typeof spec === "string" ? [spec] : spec; |
no test coverage detected