I dont need to, thats a design choice i made for the moment for various reasons, one being to stay close to SQL concepts.
It seems like your DB is basically a Datalog version of what im trying to do in SQL.
26 karma · joined August 17, 2018
It seems like your DB is basically a Datalog version of what im trying to do in SQL.
So the main difference is then that my version is SQL based: alter table transactions add constraint c_amount check (amount > 10000 -> auth.name = user.man.name) # or something similar, where you refer to other tables via a chain of foreign keys.
Another extra feature is that you can use aggregators in constraints in case of a one to many relationship: https://github.com/gsvigruha/cosyan/blob/master/src/main/res...
The idea here is that constraints could span across multiple tables via chains of foreign keys. It might not be a new idea but i haven't seen any implementations yet (unless you count triggers).