Copyright(c) digitally induced GmbH 2020
Safe HaskellNone

IHP.IDE.SchemaDesigner.Types

Description

 

Documentation

data Statement Source #

Constructors

StatementCreateTable

CREATE TABLE name ( columns );

CreateEnumType

CREATE TYPE name AS ENUM ( values );

Fields

CreateExtension

CREATE EXTENSION IF NOT EXISTS "name";

Fields

AddConstraint

ALTER TABLE tableName ADD CONSTRAINT constraintName constraint;

UnknownStatement 

Fields

Comment 

Fields

Instances

Instances details
Eq Statement Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Show Statement Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

showsPrec :: Int -> Statement -> ShowS #

show :: Statement -> String

showList :: [Statement] -> ShowS #

data CreateTable Source #

Instances

Instances details
Eq CreateTable Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Show CreateTable Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

showsPrec :: Int -> CreateTable -> ShowS #

show :: CreateTable -> String

showList :: [CreateTable] -> ShowS #

data Column Source #

Instances

Instances details
Eq Column Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

(==) :: Column -> Column -> Bool #

(/=) :: Column -> Column -> Bool #

Show Column Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

showsPrec :: Int -> Column -> ShowS #

show :: Column -> String

showList :: [Column] -> ShowS #

data OnDelete Source #

Constructors

NoAction 
Restrict 
SetNull 
Cascade 

Instances

Instances details
Eq OnDelete Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Show OnDelete Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

showsPrec :: Int -> OnDelete -> ShowS #

show :: OnDelete -> String

showList :: [OnDelete] -> ShowS #

data Constraint Source #

Constructors

ForeignKeyConstraint

FOREIGN KEY (columnName) REFERENCES referenceTable (referenceColumn) ON DELETE onDelete;

UniqueConstraint 

Fields

Instances

Instances details
Eq Constraint Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Show Constraint Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

showsPrec :: Int -> Constraint -> ShowS #

show :: Constraint -> String

showList :: [Constraint] -> ShowS #

data Expression Source #

Constructors

TextExpression Text

Sql string like hello

VarExpression Text

Simple variable like users

CallExpression Text [Expression]

Simple call, like COALESCE(name, 'unknown name')

Instances

Instances details
Eq Expression Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Show Expression Source # 
Instance details

Defined in IHP.IDE.SchemaDesigner.Types

Methods

showsPrec :: Int -> Expression -> ShowS #

show :: Expression -> String

showList :: [Expression] -> ShowS #