[−][src]Struct rustorm::EntityManager
Methods
impl EntityManager
[src]
impl EntityManager
pub fn set_session_user(&self, username: &str) -> Result<(), DbError>
[src]
pub fn set_session_user(&self, username: &str) -> Result<(), DbError>
pub fn get_role(&self, username: &str) -> Result<Option<Role>, DbError>
[src]
pub fn get_role(&self, username: &str) -> Result<Option<Role>, DbError>
pub fn db(&self) -> &dyn Database
[src]
pub fn db(&self) -> &dyn Database
pub fn get_all<T>(&self) -> Result<Vec<T>, DbError> where
T: ToTableName + ToColumnNames + FromDao,
[src]
pub fn get_all<T>(&self) -> Result<Vec<T>, DbError> where
T: ToTableName + ToColumnNames + FromDao,
get all the records of this table
pub fn get_table(&self, table_name: &TableName) -> Result<Table, DbError>
[src]
pub fn get_table(&self, table_name: &TableName) -> Result<Table, DbError>
get the table from database based on this column name
pub fn get_all_tables(&self) -> Result<Vec<Table>, DbError>
[src]
pub fn get_all_tables(&self) -> Result<Vec<Table>, DbError>
get all the user table and views from the database
pub fn get_users(&self) -> Result<Vec<User>, DbError>
[src]
pub fn get_users(&self) -> Result<Vec<User>, DbError>
pub fn get_database_name(&self) -> Result<Option<DatabaseName>, DbError>
[src]
pub fn get_database_name(&self) -> Result<Option<DatabaseName>, DbError>
pub fn get_grouped_tables(&self) -> Result<Vec<SchemaContent>, DbError>
[src]
pub fn get_grouped_tables(&self) -> Result<Vec<SchemaContent>, DbError>
get all table and views grouped per schema
pub fn insert<T, R>(&self, entities: &[&T]) -> Result<Vec<R>, DbError> where
T: ToTableName + ToColumnNames + ToDao,
R: FromDao + ToColumnNames,
[src]
pub fn insert<T, R>(&self, entities: &[&T]) -> Result<Vec<R>, DbError> where
T: ToTableName + ToColumnNames + ToDao,
R: FromDao + ToColumnNames,
insert to table the values of this struct TODO: sqlite3 doesn't support the RETURNING keyword
pub fn execute_sql_with_return<'a, R>(
&self,
sql: &str,
params: &[&'a dyn ToValue]
) -> Result<Vec<R>, DbError> where
R: FromDao,
[src]
pub fn execute_sql_with_return<'a, R>(
&self,
sql: &str,
params: &[&'a dyn ToValue]
) -> Result<Vec<R>, DbError> where
R: FromDao,
pub fn execute_sql_with_one_return<'a, R>(
&self,
sql: &str,
params: &[&'a dyn ToValue]
) -> Result<R, DbError> where
R: FromDao,
[src]
pub fn execute_sql_with_one_return<'a, R>(
&self,
sql: &str,
params: &[&'a dyn ToValue]
) -> Result<R, DbError> where
R: FromDao,
pub fn execute_sql_with_maybe_one_return<'a, R>(
&self,
sql: &str,
params: &[&'a dyn ToValue]
) -> Result<Option<R>, DbError> where
R: FromDao,
[src]
pub fn execute_sql_with_maybe_one_return<'a, R>(
&self,
sql: &str,
params: &[&'a dyn ToValue]
) -> Result<Option<R>, DbError> where
R: FromDao,
Auto Trait Implementations
impl Send for EntityManager
impl Send for EntityManager
impl Sync for EntityManager
impl Sync for EntityManager
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId