pub struct EasySqlTables {
pub table_id: String,
pub version: i64,
}Expand description
Internal metadata table used by Easy SQL to track per-table schema versions.
This table is created automatically via DatabaseSetup and is used by the
Table derive macro to store the last known version of each table.
It lives in the database as easy_sql_tables, keyed by table_id.
Fields§
§table_id: StringThe logical identifier of the table being tracked.
version: i64The stored schema version for the table.
Trait Implementations§
Source§impl<D: Driver + 'static> DatabaseSetup<D> for EasySqlTableswhere
DriverConnection<D>: Send + Sync,
String: Type<InternalDriver<D>>,
i64: Type<InternalDriver<D>>,
impl<D: Driver + 'static> DatabaseSetup<D> for EasySqlTableswhere
DriverConnection<D>: Send + Sync,
String: Type<InternalDriver<D>>,
i64: Type<InternalDriver<D>>,
Source§impl Debug for EasySqlTables
impl Debug for EasySqlTables
Source§impl<'a, D: Driver> Insert<'a, EasySqlTables, D> for &'a EasySqlTableswhere
for<'__easy_sql_x> String: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
for<'__easy_sql_x> i64: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
impl<'a, D: Driver> Insert<'a, EasySqlTables, D> for &'a EasySqlTableswhere
for<'__easy_sql_x> String: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
for<'__easy_sql_x> i64: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
fn insert_columns() -> Vec<String>
Source§fn insert_values(
self,
args_list: DriverArguments<'a, D>,
) -> Result<(DriverArguments<'a, D>, usize)>
fn insert_values( self, args_list: DriverArguments<'a, D>, ) -> Result<(DriverArguments<'a, D>, usize)>
Returns (new arguments list, number of inserted rows)
Source§impl<'a, D: Driver> Insert<'a, EasySqlTables, D> for EasySqlTableswhere
for<'__easy_sql_x> String: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
for<'__easy_sql_x> i64: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
impl<'a, D: Driver> Insert<'a, EasySqlTables, D> for EasySqlTableswhere
for<'__easy_sql_x> String: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
for<'__easy_sql_x> i64: Encode<'__easy_sql_x, InternalDriver<D>> + Type<InternalDriver<D>>,
fn insert_columns() -> Vec<String>
Source§fn insert_values(
self,
args_list: DriverArguments<'a, D>,
) -> Result<(DriverArguments<'a, D>, usize)>
fn insert_values( self, args_list: DriverArguments<'a, D>, ) -> Result<(DriverArguments<'a, D>, usize)>
Returns (new arguments list, number of inserted rows)
Source§impl<D: Driver + 'static> Table<D> for EasySqlTables
impl<D: Driver + 'static> Table<D> for EasySqlTables
fn table_name() -> &'static str
fn primary_keys() -> Vec<&'static str>
Source§fn table_joins(_current_query: &mut String)
fn table_joins(_current_query: &mut String)
WARNING: This signature may change in future releases; prefer the macros above. Read more
impl HasTable<EasySqlTables> for EasySqlTables
impl NotJoinedTable for EasySqlTables
Auto Trait Implementations§
impl Freeze for EasySqlTables
impl RefUnwindSafe for EasySqlTables
impl Send for EasySqlTables
impl Sync for EasySqlTables
impl Unpin for EasySqlTables
impl UnwindSafe for EasySqlTables
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> 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> 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 more