module Hasura.Backends.Postgres.Types.Column
( unsafePGColumnToBackend,
)
where
import Hasura.Backends.Postgres.Instances.Types ()
import Hasura.Backends.Postgres.SQL.Types
import Hasura.RQL.Types.BackendType
import Hasura.RQL.Types.Column
unsafePGColumnToBackend :: ColumnType ('Postgres pgKind) -> PGScalarType
unsafePGColumnToBackend :: forall (pgKind :: PostgresKind).
ColumnType ('Postgres pgKind) -> PGScalarType
unsafePGColumnToBackend = \case
ColumnScalar ScalarType ('Postgres pgKind)
scalarType -> ScalarType ('Postgres pgKind)
PGScalarType
scalarType
ColumnEnumReference EnumReference ('Postgres pgKind)
_ -> PGScalarType
PGText