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