Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions for fetching and updating @Metadata
in the catalog.
Synopsis
- fetchMetadataFromCatalog :: TxE QErr Metadata
- fetchMetadataAndResourceVersionFromCatalog :: TxE QErr MetadataWithResourceVersion
- fetchMetadataResourceVersionFromCatalog :: TxE QErr MetadataResourceVersion
- fetchMetadataNotificationsFromCatalog :: MetadataResourceVersion -> InstanceId -> TxE QErr [(MetadataResourceVersion, CacheInvalidations)]
- bumpMetadataVersionInCatalog :: TxE QErr ()
- insertMetadataInCatalog :: Metadata -> TxE QErr ()
- setMetadataInCatalog :: MetadataResourceVersion -> Metadata -> TxE QErr MetadataResourceVersion
Documentation
fetchMetadataNotificationsFromCatalog :: MetadataResourceVersion -> InstanceId -> TxE QErr [(MetadataResourceVersion, CacheInvalidations)] Source #
setMetadataInCatalog :: MetadataResourceVersion -> Metadata -> TxE QErr MetadataResourceVersion Source #
Check that the specified resource version matches the currently stored one, and...
- If so: Update the metadata and bump the version
- If not: Throw a 409 error