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