add support for create and drop view
This commit is contained in:
parent
8291fbaa44
commit
c2810cddd2
4 changed files with 110 additions and 10 deletions
Language/SQL/SimpleSQL
|
@ -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)
|
||||
|
||||
|
||||
--------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue