sea_query/foreign_key/
mod.rs1mod common;
9mod create;
10mod drop;
11
12pub use common::*;
13pub use create::*;
14pub use drop::*;
15
16#[derive(Debug, Clone)]
18pub struct ForeignKey;
19
20#[allow(clippy::large_enum_variant)]
22#[derive(Debug, Clone)]
23#[non_exhaustive]
24pub enum ForeignKeyStatement {
25 Create(ForeignKeyCreateStatement),
26 Drop(ForeignKeyDropStatement),
27}
28
29impl ForeignKey {
30 pub fn create() -> ForeignKeyCreateStatement {
32 ForeignKeyCreateStatement::new()
33 }
34
35 pub fn drop() -> ForeignKeyDropStatement {
37 ForeignKeyDropStatement::new()
38 }
39}