SQLITE_DBSTATUS_DEFERRED_FKS

This parameter returns zero for the current value if and only if all foreign key constraints (deferred or immediate) have been resolved. The highwater mark is always 0.