Skip to main content

Module relation

Module relation 

Source
Expand description

Core types for table relations used by relational query building.

§Public API

Structs§

JoinColumn
A single column pair in a join condition.
RelationDef
A complete relation definition between two tables.
RelationRegistry
Registry of relation definitions, keyed by source table name.
ThroughDef
Configuration for many-to-many relations via a junction table.

Enums§

RelationKind
The kind of relation between two tables.

Functions§

many
Create a Many (has-many) relation.
many_through
Create a Many relation through a junction table (many-to-many).
one
Create a One (belongs-to / has-one) relation.