| Safe Haskell | None | 
|---|---|
| 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
| Eq PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal  | |
| Show PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods showsPrec :: Int -> PgInterval -> ShowS # show :: PgInterval -> String # showList :: [PgInterval] -> ShowS #  | |
| PersistFieldSql PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods sqlType :: Proxy PgInterval -> SqlType #  | |
| PersistField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods toPersistValue :: PgInterval -> PersistValue # fromPersistValue :: PersistValue -> Either Text PgInterval #  | |
| FromField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods  | |
| ToField PgInterval Source # | |
Defined in Database.Persist.Postgresql.Internal Methods 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 PersistBools.
Since: 2.13.2.0