Struct rustorm::EntityManager [−][src]
pub struct EntityManager(pub DBPlatform);
Methods
impl EntityManager
[src]
impl EntityManager
pub fn db(&self) -> &Database
[src]
pub fn db(&self) -> &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
pub fn execute_sql_with_return<'a, R>(
&self,
sql: &str,
params: &'a [&'a ToValue]
) -> Result<Vec<R>, DbError> where
R: FromDao,
[src]
pub fn execute_sql_with_return<'a, R>(
&self,
sql: &str,
params: &'a [&'a ToValue]
) -> Result<Vec<R>, DbError> where
R: FromDao,
pub fn execute_sql_with_one_return<'a, R>(
&self,
sql: &str,
params: &'a [&'a ToValue]
) -> Result<R, DbError> where
R: FromDao,
[src]
pub fn execute_sql_with_one_return<'a, R>(
&self,
sql: &str,
params: &'a [&'a ToValue]
) -> Result<R, DbError> where
R: FromDao,
pub fn execute_sql_with_maybe_one_return<'a, R>(
&self,
sql: &str,
params: &'a [&'a ToValue]
) -> Result<Option<R>, DbError> where
R: FromDao,
[src]
pub fn execute_sql_with_maybe_one_return<'a, R>(
&self,
sql: &str,
params: &'a [&'a 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