Comments
This commit is contained in:
parent
71d0cde771
commit
da545c266c
@ -34,11 +34,16 @@ macro_rules! bind_vec_func {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LINT: when the operand value does not match column type
|
||||||
pub trait ColumnTrait: IdenStatic + Iterable {
|
pub trait ColumnTrait: IdenStatic + Iterable {
|
||||||
type EntityName: EntityName;
|
type EntityName: EntityName;
|
||||||
|
|
||||||
fn def(&self) -> ColumnType;
|
fn def(&self) -> ColumnType;
|
||||||
|
|
||||||
|
// we may add more:
|
||||||
|
// fn indexed(&self) -> bool;
|
||||||
|
// fn unique(&self) -> bool;
|
||||||
|
|
||||||
fn entity_name(&self) -> DynIden {
|
fn entity_name(&self) -> DynIden {
|
||||||
SeaRc::new(Self::EntityName::default()) as DynIden
|
SeaRc::new(Self::EntityName::default()) as DynIden
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,6 @@ pub trait QueryOrder: Sized {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// LINT: when the column does not appear in tables selected from
|
// 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 {
|
pub trait QueryFilter: Sized {
|
||||||
type QueryStatement: ConditionalStatement;
|
type QueryStatement: ConditionalStatement;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user