Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype P = P {
- unP :: PersistValue
- newtype PgInterval = PgInterval {}
- getGetter :: Oid -> Getter PersistValue
Documentation
Newtype used to avoid orphan instances for postgresql-simple
classes.
Since: 2.13.2.0
P | |
|
newtype PgInterval Source #
Represent Postgres interval using NominalDiffTime
Since: 2.11.0.0
Instances
Eq PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal (==) :: PgInterval -> PgInterval -> Bool # (/=) :: PgInterval -> PgInterval -> Bool # | |
Show PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal showsPrec :: Int -> PgInterval -> ShowS # show :: PgInterval -> String # showList :: [PgInterval] -> ShowS # | |
PersistFieldSql PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal sqlType :: Proxy PgInterval -> SqlType # | |
PersistField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal | |
FromField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal | |
ToField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal toField :: PgInterval -> Action # |
getGetter :: Oid -> Getter PersistValue Source #
Get the field parser corresponding to the given Oid
.
For example, pass in the Oid
of bool
, and you will get back a
field parser which parses boolean values in the table into PersistBool
s.
Since: 2.13.2.0