Safe Haskell | None |
---|
This module provides functions wrapping the Azure REST API web methods.
- withTableStorage :: TableConf -> TableStorage a -> IO (Either TableError a)
- queryTables :: TableStorage [String]
- createTable :: String -> TableStorage ()
- createTableIfNecessary :: String -> TableStorage ()
- deleteTable :: String -> TableStorage ()
- insertEntity :: String -> Entity -> TableStorage ()
- updateEntity :: String -> Entity -> TableStorage ()
- mergeEntity :: String -> Entity -> TableStorage ()
- deleteEntity :: String -> EntityKey -> TableStorage ()
- queryEntity :: String -> EntityKey -> TableStorage Entity
- queryEntities :: String -> EntityQuery -> TableStorage [Entity]
- defaultEntityQuery :: EntityQuery
- defaultAccount :: AccountKey -> String -> String -> Account
- defaultConf :: AccountKey -> String -> String -> TableConf
Documentation
withTableStorage :: TableConf -> TableStorage a -> IO (Either TableError a)Source
Runs TableStorage actions given a configuration
queryTables :: TableStorage [String]Source
List the names of tables for an account or returns an error message
createTable :: String -> TableStorage ()Source
Creates a new table with the specified name or returns an error message
createTableIfNecessary :: String -> TableStorage ()Source
Creates a new table with the specified name if it does not already exist, or returns an erro message
deleteTable :: String -> TableStorage ()Source
Deletes the table with the specified name or returns an error message
insertEntity :: String -> Entity -> TableStorage ()Source
Inserts an entity into the table with the specified name or returns an error message
updateEntity :: String -> Entity -> TableStorage ()Source
Updates the specified entity (possibly removing columns) or returns an error message
mergeEntity :: String -> Entity -> TableStorage ()Source
Merges the specified entity (without removing columns) or returns an error message
deleteEntity :: String -> EntityKey -> TableStorage ()Source
Deletes the entity with the specified key or returns an error message
queryEntity :: String -> EntityKey -> TableStorage EntitySource
Returns the entity with the specified table name and key or an error message
queryEntities :: String -> EntityQuery -> TableStorage [Entity]Source
Returns a collection of entities by executing the specified query or returns an error message
defaultEntityQuery :: EntityQuerySource
An empty query with no filters and no specified page size
defaultAccount :: AccountKey -> String -> String -> AccountSource
Constructs an Account with the default values for Port and Resource Prefix
defaultConf :: AccountKey -> String -> String -> TableConfSource