Skip to main content

MAX_FOREIGN_KEY_DEPTH

Constant MAX_FOREIGN_KEY_DEPTH 

Source
pub const MAX_FOREIGN_KEY_DEPTH: usize = 64;
Expand description

How deep one chain of foreign-key actions may go.

A cascade reaches this only when the keys form a cycle, which in practice means a table whose parent column points at itself. SQLite’s own limit is a run-time recursion depth; this one is a compile-time inlining depth, and it is smaller for that reason.