column constraints
hi,
how do i formulate column constrants like not null or uniqie? didn't i just find it, isn't it documented or is it missing?
best regards, m.
p.s.: thank you for the work on RushORM, nice tool!
Thanks glad you like the library.
There is no way to add column constraints. The only way I can think to add that feature would be by throwing an exception when save is called, but that change would be pretty bad for backwards compatibility.
I'll think about it for the future but for now you may just have to add your own is valid method before calling saving.
Thanks
i would like to have an annotation like RushUnique and RushNotnull to denote that and the table is created like that then. it would not break anything because nobody is using those annotations till now. but used you have to handle exceptions accordingly. what do you think?
Hi, I'm facing the same issue with constraints. It could be a valid and interesting enhancement the one suggested by @emdete .
Regards!
Planned for v1.2 hopefully complete in the new year