robotoworks / mechanoid

Eclipse plugin providing a set of DSL's for the rapid development of Android apps
58 stars 26 forks source link

CHECK contraints for column #205

Closed elincognito closed 10 years ago

elincognito commented 10 years ago

Mechanoid doesn't seem to have support for check constraint on table columns am i correct ?

example: create table User ( id integer primary key, FirstName text, Birthdate integer not null, CreationDate integer default current_time not null, Gender text not null check (Gender = 'Male' or Gender='Female') );

if i am correct it would be nice to provide proper dsl support for and code for supporting it

fluxtah commented 10 years ago

Yes you are right, it should be fairly simple to add support for this, and should only require DSL support unless you had something in mind for code gen also to compliment it?