postgresql-simple-0.7.0.0: Mid-Level PostgreSQL client library
Copyright(c) 2013 Leon P Smith
LicenseBSD3
MaintainerLeon P Smith <leon@melding-monads.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Simple.HStore

Description

Parsers and printers for hstore, a extended type bundled with PostgreSQL providing finite maps from text strings to text strings. See https://www.postgresql.org/docs/9.5/static/hstore.html for more information.

Note that in order to use this type, a database superuser must install it by running a sql script in the share directory. This can be done on PostgreSQL 9.1 and later with the command CREATE EXTENSION hstore. See https://www.postgresql.org/docs/9.5/static/contrib.html for more information.

Synopsis

Documentation

newtype HStoreList Source #

Constructors

HStoreList 

Fields

newtype HStoreMap Source #

Constructors

HStoreMap 

Fields

parseHStoreList :: ByteString -> Either String HStoreList Source #

class ToHStoreText a where Source #

Instances

Instances details
ToHStoreText ByteString Source #

Assumed to be UTF-8 encoded

Instance details

Defined in Database.PostgreSQL.Simple.HStore.Implementation

Methods

toHStoreText :: ByteString -> HStoreText Source #

ToHStoreText ByteString Source #

Assumed to be UTF-8 encoded

Instance details

Defined in Database.PostgreSQL.Simple.HStore.Implementation

Methods

toHStoreText :: ByteString -> HStoreText Source #

ToHStoreText HStoreText Source # 
Instance details

Defined in Database.PostgreSQL.Simple.HStore.Implementation

ToHStoreText Text Source # 
Instance details

Defined in Database.PostgreSQL.Simple.HStore.Implementation

Methods

toHStoreText :: Text -> HStoreText Source #

ToHStoreText Text Source # 
Instance details

Defined in Database.PostgreSQL.Simple.HStore.Implementation

Methods

toHStoreText :: Text -> HStoreText Source #

data HStoreText Source #

Represents escape text, ready to be the key or value to a hstore value