utils/foreign_key library

Classes

ForeignKey
For define foreign key in entities, you have to use this class. Foreign keys allows you to specify constraints across entities such that SQLite will ensure that the relationship is valid when you modify the database. A foreign key constraint can be deferred until the transaction is complete. This is useful if you are doing bulk inserts into the database in a single transaction. By default, foreign key constraints are immediate but you can change this value by setting deferred to true.