Did you know ... | Search Documentation: |
Predicate database_constraint/4 |
:- use_module(library(cql/cql)).
primary_key(ColumnNames:list)
foreign_key(ForeignTableName:atom, ForeignColumnNames:list, ColumnNames:list)
unique(ColumnNames:list)
check(CheckClause)
In theory this can be autoconfigured too, but I have not written the code for it yet