Modules§
Functions§
- bare_
and_ nested_ includes_ on_ shared_ prefix - basic_
has_ many_ and_ belongs_ to_ preload - basic_
has_ one_ and_ belongs_ to_ preload - multiple_
includes_ same_ model - multiple_
includes_ with_ has_ one - nested_
belongs_ to_ optional_ then_ belongs_ to_ optional - nested_
belongs_ to_ optional_ then_ has_ many - nested_
belongs_ to_ required_ then_ belongs_ to_ required - nested_
belongs_ to_ required_ then_ has_ many - nested_
belongs_ to_ required_ then_ has_ one_ optional - nested_
belongs_ to_ required_ then_ has_ one_ required - nested_
has_ many_ preload - nested_
has_ many_ then_ belongs_ to_ optional - nested_
has_ many_ then_ belongs_ to_ required - nested_
has_ many_ then_ has_ many_ with_ empty_ leaves - nested_
has_ many_ then_ has_ one_ optional - nested_
has_ many_ then_ has_ one_ required - nested_
has_ one_ optional_ then_ belongs_ to_ required - nested_
has_ one_ optional_ then_ has_ many - nested_
has_ one_ optional_ then_ has_ one_ optional - nested_
has_ one_ required_ then_ has_ many - nested_
has_ one_ required_ then_ has_ one_ required - preload_
has_ many_ with_ optional_ belongs_ to Deferred<Vec<T>>+Deferred<Option<T>>: nullable FK allows children to exist without a parent. Tests preloading from both directions.- preload_
has_ one_ option_ none_ then_ some - Tests that preloading a
Deferred<Option<_>>correctly distinguishes between “not loaded” and “loaded as None” when the relation does not exist. - preload_
has_ one_ optional_ with_ required_ belongs_ to Deferred<Option<T>>+Deferred<T>(required FK): the child always points to a parent, but the parent may or may not have a child. Tests preloading from both directions.- preload_
has_ one_ required_ with_ optional_ belongs_ to Deferred<T>(required) +Deferred<Option<T>>: creating a parent requires providing a child, but the child FK is nullable. Tests preloading from both directions.- preload_
on_ empty_ query - preload_
on_ empty_ table - sibling_
nested_ includes_ on_ shared_ prefix - sibling_
nested_ includes_ on_ shared_ prefix_ non_ sql