Stability | experimental |
---|---|
Maintainer | Leon P Smith <leon@melding-monads.com> |
Safe Haskell | None |
Parsers and printers for hstore, a extended type bundled with PostgreSQL providing finite maps from text strings to text strings. See http://www.postgresql.org/docs/9.2/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
http://www.postgresql.org/docs/9.2/static/contrib.html for more
information.
- newtype HStoreList = HStoreList {
- fromHStoreList :: [(Text, Text)]
- newtype HStoreMap = HStoreMap {
- fromHStoreMap :: Map Text Text
- class ToHStore a where
- toHStore :: a -> HStoreBuilder
- data HStoreBuilder
- toBuilder :: HStoreBuilder -> Builder
- toLazyByteString :: HStoreBuilder -> ByteString
- hstore :: (ToHStoreText a, ToHStoreText b) => a -> b -> HStoreBuilder
- class ToHStoreText a where
- toHStoreText :: a -> HStoreText
- data HStoreText
Documentation
newtype HStoreList Source
HStoreList | |
|
Show HStoreList | |
Typeable HStoreList | |
ToField HStoreList | |
FromField HStoreList | hstore |
ToHStore HStoreList | hstore |
HStoreMap | |
|
toHStore :: a -> HStoreBuilderSource
data HStoreBuilder Source
Represents valid hstore syntax.
Typeable HStoreBuilder | |
Monoid HStoreBuilder | |
ToField HStoreBuilder | |
ToHStore HStoreBuilder |
toLazyByteString :: HStoreBuilder -> ByteStringSource
hstore :: (ToHStoreText a, ToHStoreText b) => a -> b -> HStoreBuilderSource
class ToHStoreText a whereSource
toHStoreText :: a -> HStoreTextSource
ToHStoreText ByteString | Assumed to be UTF-8 encoded |
ToHStoreText ByteString | Assumed to be UTF-8 encoded |
ToHStoreText Text | |
ToHStoreText Text | |
ToHStoreText HStoreText |
data HStoreText Source
Represents escape text, ready to be the key or value to a hstore value
Typeable HStoreText | |
Monoid HStoreText | |
ToHStoreText HStoreText |