beam-migrate-0.5.2.0: SQL DDL support and migrations support library for Beam
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.Beam.Migrate.SQL.Builder

Description

DDL syntax instances for SqlSyntaxBuilder

Synopsis

Documentation

data SqlSyntaxBuilderCreateTableOptions Source #

Options for CREATE TABLE. Given as a separate ADT because the options may go in different places syntactically.

You never really need to use this type directly.

Constructors

SqlSyntaxBuilderCreateTableOptions SqlSyntaxBuilder SqlSyntaxBuilder 

data ConstraintAttributeTiming Source #

Some backends use this to represent their constraint attributes. Does not need to be used in practice.

Instances

Instances details
Bounded ConstraintAttributeTiming Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Enum ConstraintAttributeTiming Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Show ConstraintAttributeTiming Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Eq ConstraintAttributeTiming Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Ord ConstraintAttributeTiming Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

data SqlConstraintAttributesBuilder Source #

Valid IsSql92ConstraintAttributesSyntax shared among some backends.

Instances

Instances details
Monoid SqlConstraintAttributesBuilder Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Semigroup SqlConstraintAttributesBuilder Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Show SqlConstraintAttributesBuilder Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

IsSql92ConstraintAttributesSyntax SqlConstraintAttributesBuilder Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

Eq SqlConstraintAttributesBuilder Source # 
Instance details

Defined in Database.Beam.Migrate.SQL.Builder

fromSqlConstraintAttributes :: SqlConstraintAttributesBuilder -> Builder Source #

Convert a SqlConstraintAttributesBuilder to its SQL92 representation in the returned ByteString Builder.

Orphan instances

Sql92DisplaySyntax SqlSyntaxBuilder Source # 
Instance details

Methods

displaySyntax :: SqlSyntaxBuilder -> String

IsSql92AlterColumnActionSyntax SqlSyntaxBuilder Source # 
Instance details

Methods

setNotNullSyntax :: SqlSyntaxBuilder Source #

setNullSyntax :: SqlSyntaxBuilder Source #

IsSql92AlterTableActionSyntax SqlSyntaxBuilder Source # 
Instance details

Associated Types

type Sql92AlterTableAlterColumnActionSyntax SqlSyntaxBuilder Source #

type Sql92AlterTableColumnSchemaSyntax SqlSyntaxBuilder Source #

Methods

alterColumnSyntax :: Text -> Sql92AlterTableAlterColumnActionSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

addColumnSyntax :: Text -> Sql92AlterTableColumnSchemaSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

dropColumnSyntax :: Text -> SqlSyntaxBuilder Source #

renameTableToSyntax :: Text -> SqlSyntaxBuilder Source #

renameColumnToSyntax :: Text -> Text -> SqlSyntaxBuilder Source #

IsSql92AlterTableSyntax SqlSyntaxBuilder Source # 
Instance details

Associated Types

type Sql92AlterTableTableNameSyntax SqlSyntaxBuilder Source #

type Sql92AlterTableAlterTableActionSyntax SqlSyntaxBuilder Source #

Methods

alterTableSyntax :: Sql92AlterTableTableNameSyntax SqlSyntaxBuilder -> Sql92AlterTableAlterTableActionSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

IsSql92ColumnConstraintDefinitionSyntax SqlSyntaxBuilder Source # 
Instance details

IsSql92ColumnConstraintSyntax SqlSyntaxBuilder Source # 
Instance details

IsSql92ColumnSchemaSyntax SqlSyntaxBuilder Source # 
Instance details

IsSql92CreateTableSyntax SqlSyntaxBuilder Source # 
Instance details

Associated Types

type Sql92CreateTableTableNameSyntax SqlSyntaxBuilder Source #

type Sql92CreateTableColumnSchemaSyntax SqlSyntaxBuilder Source #

type Sql92CreateTableTableConstraintSyntax SqlSyntaxBuilder Source #

type Sql92CreateTableOptionsSyntax SqlSyntaxBuilder Source #

Methods

createTableSyntax :: Maybe (Sql92CreateTableOptionsSyntax SqlSyntaxBuilder) -> Sql92CreateTableTableNameSyntax SqlSyntaxBuilder -> [(Text, Sql92CreateTableColumnSchemaSyntax SqlSyntaxBuilder)] -> [Sql92CreateTableTableConstraintSyntax SqlSyntaxBuilder] -> SqlSyntaxBuilder Source #

IsSql92DdlCommandSyntax SqlSyntaxBuilder Source # 
Instance details

Associated Types

type Sql92DdlCommandCreateTableSyntax SqlSyntaxBuilder Source #

type Sql92DdlCommandAlterTableSyntax SqlSyntaxBuilder Source #

type Sql92DdlCommandDropTableSyntax SqlSyntaxBuilder Source #

Methods

createTableCmd :: Sql92DdlCommandCreateTableSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

dropTableCmd :: Sql92DdlCommandDropTableSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

alterTableCmd :: Sql92DdlCommandAlterTableSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

IsSql92DropTableSyntax SqlSyntaxBuilder Source # 
Instance details

Associated Types

type Sql92DropTableTableNameSyntax SqlSyntaxBuilder Source #

Methods

dropTableSyntax :: Sql92DropTableTableNameSyntax SqlSyntaxBuilder -> SqlSyntaxBuilder Source #

IsSql92MatchTypeSyntax SqlSyntaxBuilder Source # 
Instance details

Methods

fullMatchSyntax :: SqlSyntaxBuilder Source #

partialMatchSyntax :: SqlSyntaxBuilder Source #

IsSql92ReferentialActionSyntax SqlSyntaxBuilder Source # 
Instance details

IsSql92TableConstraintSyntax SqlSyntaxBuilder Source # 
Instance details

Methods

primaryKeyConstraintSyntax :: [Text] -> SqlSyntaxBuilder Source #