1
Fork 0

add support for create and drop view

This commit is contained in:
Jake Wheat 2015-08-02 23:52:01 +03:00
parent 8291fbaa44
commit c2810cddd2
4 changed files with 110 additions and 10 deletions
Language/SQL/SimpleSQL

View file

@ -47,6 +47,7 @@
> ,ReferenceMatch(..)
> ,ReferentialAction(..)
> ,AlterTableAction(..)
> ,CheckOption(..)
> -- * Dialect
> ,Dialect(..)
> -- * Comment
@ -406,9 +407,10 @@ I'm not sure if this is valid syntax or not.
> | CreateTable [Name] [TableElement]
> | AlterTable [Name] AlterTableAction
> | DropTable [Name] DropBehaviour
> {- | CreateView
> | DropView
> | CreateDomain
> | CreateView Bool [Name] (Maybe [Name])
> QueryExpr (Maybe CheckOption)
> | DropView [Name] DropBehaviour
> {- | CreateDomain
> | AlterDomain
> | DropDomain
> | CreateCharacterSet
@ -617,11 +619,12 @@ I'm not sure if this is valid syntax or not.
> | SGONoCycle
> deriving (Eq,Show,Read,Data,Typeable)
> {-data ColumnConstraintDef =
> | NotNullConstraint
> | UniqueConstraint
> | ReferencesConstraint
> | CheckConstraint-}
> data CheckOption =
> DefaultCheckOption
> | CascadedCheckOption
> | LocalCheckOption
> deriving (Eq,Show,Read,Data,Typeable)
--------------------------