Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for fetching and updating @Metadata
in the catalog.
Synopsis
- fetchMetadataFromCatalog :: TxE QErr Metadata
- fetchMetadataAndResourceVersionFromCatalog :: TxE QErr (Metadata, MetadataResourceVersion)
- 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
fetchMetadataFromCatalog :: TxE QErr Metadata Source #
fetchMetadataNotificationsFromCatalog :: MetadataResourceVersion -> InstanceId -> TxE QErr [(MetadataResourceVersion, CacheInvalidations)] Source #
bumpMetadataVersionInCatalog :: TxE QErr () Source #
insertMetadataInCatalog :: Metadata -> TxE QErr () 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