Copyright | (c) 2019 Florian Grignon |
---|---|
License | BSD3 |
Maintainer | grignon.florian@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This library provide a Simple and Extensible access to PostgreSQL.
Simple: Poseidon runs a SQL query and returns a set of custom datatype. **It is not an ORM.**
Extensible: As a user of the library, you can map your custom PostgreSQL type to your Haskell datatype easily, in a pluggable way (e.g. if you're using postgis, you will be most likely interested by poseidon-postgis, that maps GeoJSON WKT to GeospatialGeometry).
Documentation
newtype PGTimestamp Source #
Instances
Show PGTimestamp Source # | |
Defined in Data.Poseidon showsPrec :: Int -> PGTimestamp -> ShowS # show :: PGTimestamp -> String # showList :: [PGTimestamp] -> ShowS # | |
Generic PGTimestamp Source # | |
Defined in Data.Poseidon type Rep PGTimestamp :: Type -> Type # from :: PGTimestamp -> Rep PGTimestamp x # to :: Rep PGTimestamp x -> PGTimestamp # | |
type Rep PGTimestamp Source # | |
Defined in Data.Poseidon type Rep PGTimestamp = D1 (MetaData "PGTimestamp" "Data.Poseidon" "poseidon-0.1.0.0-5anvkK0h9It74HrSjmus3D" True) (C1 (MetaCons "PGTimestamp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime))) |
toUTCTime :: PGTimestamp -> UTCTime Source #
newtype PGJsonValue Source #
Instances
Show PGJsonValue Source # | |
Defined in Data.Poseidon showsPrec :: Int -> PGJsonValue -> ShowS # show :: PGJsonValue -> String # showList :: [PGJsonValue] -> ShowS # | |
Generic PGJsonValue Source # | |
Defined in Data.Poseidon type Rep PGJsonValue :: Type -> Type # from :: PGJsonValue -> Rep PGJsonValue x # to :: Rep PGJsonValue x -> PGJsonValue # | |
type Rep PGJsonValue Source # | |
Defined in Data.Poseidon type Rep PGJsonValue = D1 (MetaData "PGJsonValue" "Data.Poseidon" "poseidon-0.1.0.0-5anvkK0h9It74HrSjmus3D" True) (C1 (MetaCons "PGJsonValue" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Value))) |
toValue :: PGJsonValue -> Value Source #
newtype PGByteString Source #
Instances
Show PGByteString Source # | |
Defined in Data.Poseidon showsPrec :: Int -> PGByteString -> ShowS # show :: PGByteString -> String # showList :: [PGByteString] -> ShowS # | |
Generic PGByteString Source # | |
Defined in Data.Poseidon type Rep PGByteString :: Type -> Type # from :: PGByteString -> Rep PGByteString x # to :: Rep PGByteString x -> PGByteString # | |
type Rep PGByteString Source # | |
Defined in Data.Poseidon type Rep PGByteString = D1 (MetaData "PGByteString" "Data.Poseidon" "poseidon-0.1.0.0-5anvkK0h9It74HrSjmus3D" True) (C1 (MetaCons "PGByteString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |
newtype PGLazyByteString Source #
Instances
Show PGLazyByteString Source # | |
Defined in Data.Poseidon showsPrec :: Int -> PGLazyByteString -> ShowS # show :: PGLazyByteString -> String # showList :: [PGLazyByteString] -> ShowS # | |
Generic PGLazyByteString Source # | |
Defined in Data.Poseidon type Rep PGLazyByteString :: Type -> Type # from :: PGLazyByteString -> Rep PGLazyByteString x # to :: Rep PGLazyByteString x -> PGLazyByteString # | |
type Rep PGLazyByteString Source # | |
Defined in Data.Poseidon type Rep PGLazyByteString = D1 (MetaData "PGLazyByteString" "Data.Poseidon" "poseidon-0.1.0.0-5anvkK0h9It74HrSjmus3D" True) (C1 (MetaCons "PGLazyByteString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |