graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.Postgres.Types.Column

Description

Postgres Types Column

Gets the Postgres type used to represent a column, defaulting to Text when unsure.

Synopsis

Documentation

unsafePGColumnToBackend :: ColumnType ('Postgres pgKind) -> PGScalarType Source #

Gets the representation type associated with a ColumnType. Avoid using this if possible. Prefer parsePGScalarValue, parsePGScalarValues, or mkTypedSessionVar.