drizzle_core/traits/foreign_key.rs
1/// Typed (non-dyn) foreign key metadata.
2///
3/// Compile-time foreign key information via associated types for source/target
4/// table and column sets.
5pub trait SQLForeignKey {
6 type SourceTable;
7 type TargetTable;
8 type SourceColumns;
9 type TargetColumns;
10}
11
12/// Marker used for columns that do not define a foreign key.
13pub struct NoForeignKey;
14
15impl SQLForeignKey for NoForeignKey {
16 type SourceTable = ();
17 type TargetTable = ();
18 type SourceColumns = ();
19 type TargetColumns = ();
20}