Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.Persist.Postgresql.Internal
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
Constructors
P | |
Fields
|
newtype PgInterval Source #
Represent Postgres interval using NominalDiffTime
Since: 2.11.0.0
Constructors
PgInterval | |
Fields |
Instances
Show PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal | |
Eq PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods (==) :: PgInterval -> PgInterval -> Bool Source # (/=) :: PgInterval -> PgInterval -> Bool Source # | |
PersistField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods toPersistValue :: PgInterval -> PersistValue Source # fromPersistValue :: PersistValue -> Either Text PgInterval Source # | |
PersistFieldSql PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal | |
FromField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods | |
ToField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods toField :: PgInterval -> Action Source # |
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