tablestorage-0.2.1.0: Azure Table Storage REST API Wrapper

Safe HaskellNone

Network.TableStorage.API

Description

This module provides functions wrapping the Azure REST API web methods.

Synopsis

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