pub struct Entity;Expand description
Generated by sea-orm-macros
Trait Implementations§
Source§impl<DBCP> DCCommon<Entity, DBCP, true> for Manager<DBCP>where
DBCP: DBProvider,
impl<DBCP> DCCommon<Entity, DBCP, true> for Manager<DBCP>where
DBCP: DBProvider,
Source§fn delete_many_condition(
dm: DeleteMany<Entity>,
keys: Vec<Self::Key>,
) -> DeleteMany<Entity>
fn delete_many_condition( dm: DeleteMany<Entity>, keys: Vec<Self::Key>, ) -> DeleteMany<Entity>
Provide correct condition for SeaORM’s
DeleteMany operation. See, for example,
CustomerManager::delete_many_condition
source code.Source§fn db_provider(&self) -> <Self as Child>::RcParent
fn db_provider(&self) -> <Self as Child>::RcParent
Where we get our database connection from.
Source§fn wbdc_write_back<'life0, 'async_trait>(
&'life0 self,
update_records: Arc<UpdateIterator<Self>>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn wbdc_write_back<'life0, 'async_trait>(
&'life0 self,
update_records: Arc<UpdateIterator<Self>>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Try to send given update records to the database in the most efficient way. This task is accomplished by: Read more
Source§fn wbdbc_on_new<'life0, 'life1, 'life2, 'async_trait, AM>(
&'life0 self,
_key: &'life1 Self::Key,
value: &'life2 AM,
) -> Pin<Box<dyn Future<Output = Result<DataControllerResponse<Self>, Self::Error>> + Send + 'async_trait>>
fn wbdbc_on_new<'life0, 'life1, 'life2, 'async_trait, AM>( &'life0 self, _key: &'life1 Self::Key, value: &'life2 AM, ) -> Pin<Box<dyn Future<Output = Result<DataControllerResponse<Self>, Self::Error>> + Send + 'async_trait>>
For every new data record added this method respond with [
CacheUpdates::Insert(record_active_mode)] update.
The DataControllerOp depends on the IMMUTABLE flag: if it is set to true, the operation is
DataControllerOp::Insert, otherwise it is DataControllerOp::Nop.Source§fn wbdc_on_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 Self::Key,
update: Option<&'life2 CacheUpdates<T::ActiveModel>>,
) -> Pin<Box<dyn Future<Output = Result<DataControllerResponse<Self>, Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn wbdc_on_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_key: &'life1 Self::Key,
update: Option<&'life2 CacheUpdates<T::ActiveModel>>,
) -> Pin<Box<dyn Future<Output = Result<DataControllerResponse<Self>, Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute record deletion. Read more
Source§fn wbdc_on_change<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 Self::Key,
value: &'life2 Self::Value,
old_value: Self::Value,
prev_update: Option<Self::CacheUpdate>,
) -> Pin<Box<dyn Future<Output = Result<DataControllerResponse<Self>, Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn wbdc_on_change<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
key: &'life1 Self::Key,
value: &'life2 Self::Value,
old_value: Self::Value,
prev_update: Option<Self::CacheUpdate>,
) -> Pin<Box<dyn Future<Output = Result<DataControllerResponse<Self>, Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Called when a record is modified by the user. Read more
Source§impl EntityName for Entity
impl EntityName for Entity
Source§fn schema_name(&self) -> Option<&str>
fn schema_name(&self) -> Option<&str>
Method to get the name for the schema, defaults to Option::None if not set
Source§fn table_name(&self) -> &str
fn table_name(&self) -> &str
Get the name of the table
Source§fn comment(&self) -> Option<&str>
fn comment(&self) -> Option<&str>
Method to get the comment for the schema, defaults to Option::None if not set
Source§fn module_name(&self) -> &str
fn module_name(&self) -> &str
Get the name of the module from the invoking
self.table_name()Source§impl EntityTrait for Entity
impl EntityTrait for Entity
type Model = Model
type ActiveModel = ActiveModel
type Column = Column
type PrimaryKey = PrimaryKey
type Relation = Relation
Source§fn belongs_to<R>(related: R) -> RelationBuilder<Self, R>where
R: EntityTrait,
fn belongs_to<R>(related: R) -> RelationBuilder<Self, R>where
R: EntityTrait,
Construct a belongs to relation
Source§fn has_one<R>(_: R) -> RelationBuilder<Self, R>where
R: EntityTrait + Related<Self>,
fn has_one<R>(_: R) -> RelationBuilder<Self, R>where
R: EntityTrait + Related<Self>,
Construct a has one relation
Source§fn has_many<R>(_: R) -> RelationBuilder<Self, R>where
R: EntityTrait + Related<Self>,
fn has_many<R>(_: R) -> RelationBuilder<Self, R>where
R: EntityTrait + Related<Self>,
Construct a has many relation
Source§fn find_by_id<T>(values: T) -> Select<Self>
fn find_by_id<T>(values: T) -> Select<Self>
Find a model by primary key Read more
Source§fn insert<A>(model: A) -> Insert<A>where
A: ActiveModelTrait<Entity = Self>,
fn insert<A>(model: A) -> Insert<A>where
A: ActiveModelTrait<Entity = Self>,
Insert a model into database Read more
Source§fn insert_many<A, I>(models: I) -> Insert<A>where
A: ActiveModelTrait<Entity = Self>,
I: IntoIterator<Item = A>,
fn insert_many<A, I>(models: I) -> Insert<A>where
A: ActiveModelTrait<Entity = Self>,
I: IntoIterator<Item = A>,
Insert many models into database Read more
Source§fn update<A>(model: A) -> UpdateOne<A>where
A: ActiveModelTrait<Entity = Self>,
fn update<A>(model: A) -> UpdateOne<A>where
A: ActiveModelTrait<Entity = Self>,
Update a model in database Read more
Source§fn update_many() -> UpdateMany<Self>
fn update_many() -> UpdateMany<Self>
Update many models in database Read more
Source§fn delete<A>(model: A) -> DeleteOne<A>where
A: ActiveModelTrait<Entity = Self>,
fn delete<A>(model: A) -> DeleteOne<A>where
A: ActiveModelTrait<Entity = Self>,
Delete a model from database Read more
Source§fn delete_many() -> DeleteMany<Self>
fn delete_many() -> DeleteMany<Self>
Delete many models from database Read more
Source§fn delete_by_id<T>(values: T) -> DeleteMany<Self>
fn delete_by_id<T>(values: T) -> DeleteMany<Self>
Delete a model based on primary key Read more
Source§impl Iden for Entity
impl Iden for Entity
Source§impl IdenStatic for Entity
impl IdenStatic for Entity
impl Copy for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> EntityOrSelect<E> for Ewhere
E: EntityTrait,
impl<E> EntityOrSelect<E> for Ewhere
E: EntityTrait,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoColumnRef for Twhere
T: 'static + IntoIden,
impl<T> IntoColumnRef for Twhere
T: 'static + IntoIden,
fn into_column_ref(self) -> ColumnRef
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoIdentity for Twhere
T: IdenStatic,
impl<T> IntoIdentity for Twhere
T: IdenStatic,
Source§fn into_identity(self) -> Identity
fn into_identity(self) -> Identity
Method to perform the conversion
Source§impl<I> IntoIndexColumn for Iwhere
I: IntoIden,
impl<I> IntoIndexColumn for Iwhere
I: IntoIden,
fn into_index_column(self) -> IndexColumn
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoTableRef for Twhere
T: 'static + IntoIden,
impl<T> IntoTableRef for Twhere
T: 'static + IntoIden,
fn into_table_ref(self) -> TableRef
Source§impl<I> IntoTypeRef for Iwhere
I: IntoIden,
impl<I> IntoTypeRef for Iwhere
I: IntoIden,
fn into_type_ref(self) -> TypeRef
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.