Safe Haskell | None |
---|---|
Language | Haskell2010 |
Defines common DatabasePredicate
s that are shared among backends
Synopsis
- data TableExistsPredicate = TableExistsPredicate Text
- data TableHasColumn syntax where
- TableHasColumn :: Typeable (Sql92ColumnSchemaColumnTypeSyntax syntax) => {..} -> TableHasColumn syntax
- data TableColumnHasConstraint syntax = TableColumnHasConstraint {}
- data TableHasPrimaryKey = TableHasPrimaryKey {}
- beamCheckDeserializers :: forall cmd. (IsSql92DdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), Sql92SerializableConstraintDefinitionSyntax (Sql92DdlCommandConstraintDefinitionSyntax cmd)) => BeamDeserializers cmd
Table checks
data TableExistsPredicate Source #
Asserts that a table with the given name exists in a database
TableExistsPredicate Text | Table name |
Instances
data TableHasColumn syntax where Source #
Asserts that the table specified has a column with the given data type. The
type paramater syntax
should be an instance of IsSql92ColumnSchemaSyntax
.
TableHasColumn :: Typeable (Sql92ColumnSchemaColumnTypeSyntax syntax) => {..} -> TableHasColumn syntax | |
|
Instances
data TableColumnHasConstraint syntax Source #
Asserts that a particular column of a table has a given constraint. The
syntax
type parameter should be an instance of IsSql92ColumnSchemaSyntax
TableColumnHasConstraint | |
|
Instances
data TableHasPrimaryKey Source #
Asserts that the given table has a primary key made of the given columns. The order of the columns is significant.
TableHasPrimaryKey | |
|
Instances
Deserialization
beamCheckDeserializers :: forall cmd. (IsSql92DdlCommandSyntax cmd, Sql92SerializableDataTypeSyntax (Sql92DdlCommandDataTypeSyntax cmd), Sql92SerializableConstraintDefinitionSyntax (Sql92DdlCommandConstraintDefinitionSyntax cmd)) => BeamDeserializers cmd Source #
BeamDeserializers
for all the predicates defined in this module