Struct akita::Akita [−][src]
pub struct Akita { /* fields omitted */ }
Implementations
Get one the table of records
Get table of records with page
Get the total count of records
Remove the records by wrapper.
Update the records by wrapper.
called multiple times when using database platform that doesn;t support multiple value
called multiple times when using database platform that doesn;t support multiple value
Performs text query and maps each row of the first result set.
Performs text query and maps each row of the first result set.
pub fn query_fold<T, F, Q, U>(
self,
query: Q,
init: U,
f: F
) -> Result<U, AkitaError> where
Q: Into<String>,
T: FromValue,
F: FnMut(U, T) -> U,
pub fn query_fold<T, F, Q, U>(
self,
query: Q,
init: U,
f: F
) -> Result<U, AkitaError> where
Q: Into<String>,
T: FromValue,
F: FnMut(U, T) -> U,
Performs text query and folds the first result set to a single value.
pub fn exec_iter<'a, S: Into<String>, P: Into<Params>>(
self,
sql: S,
params: P
) -> Result<Rows, AkitaError>
pub fn exec_raw<'a, R, S: Into<String>, P: Into<Params>>(
self,
sql: S,
params: P
) -> Result<Vec<R>, AkitaError> where
R: FromValue,
pub fn exec_first<'a, R, S: Into<String>, P: Into<Params>>(
self,
sql: S,
params: P
) -> Result<R, AkitaError> where
R: FromValue,
pub fn exec_drop<'a, S: Into<String>, P: Into<Params>>(
self,
sql: S,
params: P
) -> Result<(), AkitaError>
pub fn exec_first_opt<'a, R, S: Into<String>, P: Into<Params>>(
self,
sql: S,
params: P
) -> Result<Option<R>, AkitaError> where
R: FromValue,
build an update clause
pub fn build_insert_clause_map<T>(
&mut self,
entity: &T
) -> Result<String, AkitaError> where
T: ToValue,
pub fn build_insert_clause_map<T>(
&mut self,
entity: &T
) -> Result<String, AkitaError> where
T: ToValue,
build an insert clause
pub fn build_insert_clause<T>(
&mut self,
entities: &[&T]
) -> Result<String, AkitaError> where
T: GetFields + ToValue,
pub fn build_insert_clause<T>(
&mut self,
entities: &[&T]
) -> Result<String, AkitaError> where
T: GetFields + ToValue,
build an insert clause