Interface: IModelRegistryRepository
Defined in: internal/model-registry/types.ts:153
Persistence seam of the registry. Implement once per storage engine. Only the registry calls it.
Methods
loadAll()
loadAll():
Promise<IModelInfo[]>
Defined in: internal/model-registry/types.ts:167
loadAll -- every model entry
About
The whole catalog, for the registry's cache.
Returns every stored entry, in any order.
Who needs it
ModelRegistry.getCatalog, on a refresh.
Returns
Promise<IModelInfo[]>
remove()
remove(
args):Promise<void>
Defined in: internal/model-registry/types.ts:195
remove -- deletes one entry
About
Permanent; nothing when it does not exist.
Removes the entry with this id.
Who needs it
ModelRegistry.removeModel.
Parameters
args
modelId
string
Returns
Promise<void>
save()
save(
args):Promise<void>
Defined in: internal/model-registry/types.ts:181
save -- inserts or replaces one entry
About
Upsert by
model.id.
The entry is stored whole; an entry with the same id is replaced.
Who needs it
ModelRegistry.upsertModel and setEnabled.
Parameters
args
model
Returns
Promise<void>