1
Fork 0

add create, alter, drop domain

This commit is contained in:
Jake Wheat 2015-08-04 22:08:32 +03:00
parent c2810cddd2
commit 9aab04b189
4 changed files with 151 additions and 8 deletions
Language/SQL/SimpleSQL

View file

@ -48,6 +48,7 @@
> ,ReferentialAction(..)
> ,AlterTableAction(..)
> ,CheckOption(..)
> ,AlterDomainAction(..)
> -- * Dialect
> ,Dialect(..)
> -- * Comment
@ -410,10 +411,11 @@ I'm not sure if this is valid syntax or not.
> | CreateView Bool [Name] (Maybe [Name])
> QueryExpr (Maybe CheckOption)
> | DropView [Name] DropBehaviour
> {- | CreateDomain
> | AlterDomain
> | DropDomain
> | CreateCharacterSet
> | CreateDomain [Name] TypeName (Maybe ValueExpr)
> [(Maybe [Name], ValueExpr)]
> | AlterDomain [Name] AlterDomainAction
> | DropDomain [Name] DropBehaviour
> {- | CreateCharacterSet
> | DropCharacterSet
> | CreateCollation
> | DropCollation
@ -625,6 +627,13 @@ I'm not sure if this is valid syntax or not.
> | LocalCheckOption
> deriving (Eq,Show,Read,Data,Typeable)
> data AlterDomainAction =
> ADSetDefault ValueExpr
> | ADDropDefault
> | ADAddConstraint (Maybe [Name]) ValueExpr
> | ADDropConstraint [Name]
> deriving (Eq,Show,Read,Data,Typeable)
--------------------------