tablestorage-0.1.0.3: Azure Table Storage REST API Wrapper

Safe HaskellSafe-Infered

Network.TableStorage.API

Description

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

Synopsis

Documentation

queryTables :: Account -> IO (Either String [String])Source

List the names of tables for an account or returns an error message

createTable :: Account -> String -> IO (Either String ())Source

Creates a new table with the specified name or returns an error message

createTableIfNecessary :: Account -> String -> IO (Either String ())Source

Creates a new table with the specified name if it does not already exist, or returns an erro message

deleteTable :: Account -> String -> IO (Either String ())Source

Deletes the table with the specified name or returns an error message

insertEntity :: Account -> String -> Entity -> IO (Either String ())Source

Inserts an entity into the table with the specified name or returns an error message

updateEntity :: Account -> String -> Entity -> IO (Either String ())Source

Updates the specified entity (possibly removing columns) or returns an error message

mergeEntity :: Account -> String -> Entity -> IO (Either String ())Source

Merges the specified entity (without removing columns) or returns an error message

deleteEntity :: Account -> String -> EntityKey -> IO (Either String ())Source

Deletes the entity with the specified key or returns an error message

queryEntity :: Account -> String -> EntityKey -> IO (Either String Entity)Source

Returns the entity with the specified table name and key or an error message

queryEntities :: Account -> String -> EntityQuery -> IO (Either String [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