HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulepersistent-postgresql-2.14.3.0Haskell2010

Database.Persist.Postgresql.Internal

  • 6 types
  • 21 values
newtypenewtype P
#

Newtype used to avoid orphan instances for postgresql-simple classes.

Constructors

Instances2FromField, ToField
  • FromField PDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
  • ToField PDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
newtypenewtype PgInterval
#

Represent Postgres interval using NominalDiffTime

Note that this type cannot be losslessly round tripped through PostgreSQL. For example the value PgInterval 0.0000009 will truncate extra precision. And the value PgInterval 9223372036854.775808 will overflow. Use the Interval type if that is a problem for you.

Instances6Eq, Show, PersistField, PersistFieldSql, FromField, ToField
  • Eq PgIntervalDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
  • Show PgIntervalDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
  • PersistField PgIntervalDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
  • PersistFieldSql PgIntervalDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
  • FromField PgIntervalDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
  • ToField PgIntervalDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal
valuegetGetter :: Oid -> Getter PersistValue
#

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.

datadata AlterColumn
#
Instances2Eq, Show
  • Eq AlterColumnDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal.Migration
  • Show AlterColumnDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal.Migration
newtypenewtype SafeToRemove
#

Indicates whether a Postgres Column is safe to drop.

Instances2Eq, Show
  • Eq SafeToRemoveDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal.Migration
  • Show SafeToRemoveDefined in persistent-postgresql-2.14.3.0 · Database.Persist.Postgresql.Internal.Migration
valuefindAlters
  1. :: [EntityDef]

    The list of all entity definitions that persistent is aware of.

  2. -> EntityDef

    The entity definition for the entity that we're working on.

  3. -> Column

    The column that we're searching for potential alterations for, derived from the Persistent EntityDef. That is: this is how we _want_ the column to look, and not necessarily how it actually looks in the database right now.

  4. -> [Column]

    The columns for this table, as they currently exist in the database.

  5. -> ([AlterColumn], [Column])
#