| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Hasura.SQL.Types
Synopsis
- class ToSQL a where
- toSQL :: a -> Builder
- toSQLTxt :: ToSQL a => a -> Text
- data CollectableType a
- newtype ExtensionsSchema = ExtensionsSchema {
- _unExtensionsSchema :: Text
Documentation
Instances
data CollectableType a Source #
The type of all Postgres types (i.e. scalars and arrays). This type is parameterized so that
we can have both and CollectableType PGScalarType, for
when we care about the distinction made by CollectableType PGColumnTypePGColumnType. If we ever change
PGColumnType to handle arrays, not just scalars, then the parameterization can
go away.
TODO (from master): This is incorrect modeling, as PGScalarType will capture anything (under PGUnknown).
This should be fixed when support for all types is merged.
Constructors
| CollectableTypeScalar !a | |
| CollectableTypeArray !a |
Instances
newtype ExtensionsSchema Source #
The name of the schema in which the graphql-engine will install database extensions.
Constructors
| ExtensionsSchema | |
Fields
| |