This commit is contained in:
Chris Tsang 2021-06-12 19:48:43 +08:00
parent 71d0cde771
commit da545c266c
2 changed files with 5 additions and 1 deletions

View File

@ -34,11 +34,16 @@ macro_rules! bind_vec_func {
};
}
// LINT: when the operand value does not match column type
pub trait ColumnTrait: IdenStatic + Iterable {
type EntityName: EntityName;
fn def(&self) -> ColumnType;
// we may add more:
// fn indexed(&self) -> bool;
// fn unique(&self) -> bool;
fn entity_name(&self) -> DynIden {
SeaRc::new(Self::EntityName::default()) as DynIden
}

View File

@ -214,7 +214,6 @@ pub trait QueryOrder: Sized {
}
// LINT: when the column does not appear in tables selected from
// LINT: when the operand value does not match column type
pub trait QueryFilter: Sized {
type QueryStatement: ConditionalStatement;