(row: CoreRow<"plugin_storage">)
| 1021 | // --------------------------------------------------------------------------- |
| 1022 | |
| 1023 | const pluginStorageEntryFromRow = <T>(row: CoreRow<"plugin_storage">): PluginStorageEntry<T> => ({ |
| 1024 | id: pluginStorageId({ |
| 1025 | pluginId: row.plugin_id, |
| 1026 | collection: row.collection, |
| 1027 | key: row.key, |
| 1028 | }), |
| 1029 | owner: row.owner as Owner, |
| 1030 | pluginId: row.plugin_id, |
| 1031 | collection: row.collection, |
| 1032 | key: row.key, |
| 1033 | data: row.data as T, |
| 1034 | createdAt: row.created_at instanceof Date ? row.created_at : new Date(row.created_at), |
| 1035 | updatedAt: row.updated_at instanceof Date ? row.updated_at : new Date(row.updated_at), |
| 1036 | }); |
| 1037 | |
| 1038 | const pluginStorageIndexSpecFields = (spec: PluginStorageRuntimeIndexSpec): readonly string[] => |
| 1039 | typeof spec === "string" ? [spec] : spec; |
no test coverage detected