Struct rustorm::platform::mysql::Mysql
[−]
[src]
pub struct Mysql { // some fields omitted }
pub struct Mysql { // some fields omitted }
impl Mysql
fn new() -> Self
fn with_pooled_connection(pool: MyPool) -> Self
impl Database for Mysql
fn version(&self) -> String
fn begin(&self)
fn commit(&self)
fn rollback(&self)
fn is_transacted(&self) -> bool
fn is_closed(&self) -> bool
fn is_connected(&self) -> bool
fn close(&self)
fn is_valid(&self) -> bool
fn reset(&self)
fn sql_options(&self) -> Vec<SqlOption>
fn update(&self, _query: &Query) -> Dao
fn delete(&self, _query: &Query) -> Result<usize, String>
fn execute_sql_with_return(&self, sql: &str, params: &Vec<Value>) -> Result<Vec<Dao>, DbError>
fn execute_sql_with_one_return(&self, sql: &str, params: &Vec<Value>) -> Result<Dao, DbError>
fn execute_sql(&self, sql: &str, params: &Vec<Value>) -> Result<usize, DbError>
fn select(&self, query: &Query) -> Result<DaoResult, DbError>
fn insert(&self, query: &Query) -> Result<Dao, DbError>
fn execute_with_return(&self, query: &Query) -> Result<DaoResult, DbError>
fn execute_with_one_return(&self, query: &Query) -> Result<Dao, DbError>
fn execute(&self, query: &Query) -> Result<usize, DbError>
fn build_query(&self, query: &Query) -> SqlFrag
fn build_operand(&self, w: &mut SqlFrag, parent_query: &Query, operand: &Operand)
fn build_condition(&self, w: &mut SqlFrag, parent_query: &Query, cond: &Condition)
fn build_field(&self, w: &mut SqlFrag, parent_query: &Query, field: &Field)
fn build_filter(&self, w: &mut SqlFrag, parent_query: &Query, filter: &Filter)
fn build_filters(&self, w: &mut SqlFrag, parent_query: &Query, filters: &Vec<Filter>)
fn build_enumerated_fields(&self, w: &mut SqlFrag, parent_query: &Query, enumerated_fields: &Vec<Field>)
fn build_select(&self, query: &Query) -> SqlFrag
fn build_insert(&self, query: &Query) -> SqlFrag
fn build_update(&self, query: &Query) -> SqlFrag
fn build_delete(&self, query: &Query) -> SqlFrag
impl DatabaseDDL for Mysql
fn create_schema(&self, _schema: &str)
fn drop_schema(&self, _schema: &str)
fn build_create_table(&self, table: &Table) -> SqlFrag
fn create_table(&self, table: &Table)
fn rename_table(&self, _table: &Table, _new_tablename: String)
fn drop_table(&self, _table: &Table)
fn set_foreign_constraint(&self, _model: &Table)
fn set_primary_constraint(&self, _model: &Table)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)