Struct diesel::sqlite::SqliteConnection sqlite
[−]
[src]
pub struct SqliteConnection { /* fields omitted */ }
Trait Implementations
impl Send for SqliteConnection
[src]
impl SimpleConnection for SqliteConnection
[src]
fn batch_execute(&self, query: &str) -> QueryResult<()>
[src]
impl Connection for SqliteConnection
[src]
type Backend = Sqlite
fn establish(database_url: &str) -> ConnectionResult<Self>
[src]
Establishes a new connection to the database at the given URL. The URL should be a valid connection string for a given backend. See the documentation for the specific backend for specifics. Read more
fn execute(&self, query: &str) -> QueryResult<usize>
[src]
fn query_all<T, U>(&self, source: T) -> QueryResult<Vec<U>> where
T: AsQuery,
T::Query: QueryFragment<Self::Backend> + QueryId,
Self::Backend: HasSqlType<T::SqlType>,
U: Queryable<T::SqlType, Self::Backend>,
[src]
T: AsQuery,
T::Query: QueryFragment<Self::Backend> + QueryId,
Self::Backend: HasSqlType<T::SqlType>,
U: Queryable<T::SqlType, Self::Backend>,
fn execute_returning_count<T>(&self, source: &T) -> QueryResult<usize> where
T: QueryFragment<Self::Backend> + QueryId,
[src]
T: QueryFragment<Self::Backend> + QueryId,
fn silence_notices<F: FnOnce() -> T, T>(&self, f: F) -> T
[src]
fn begin_transaction(&self) -> QueryResult<()>
[src]
fn rollback_transaction(&self) -> QueryResult<()>
[src]
fn commit_transaction(&self) -> QueryResult<()>
[src]
fn get_transaction_depth(&self) -> i32
[src]
fn setup_helper_functions(&self)
[src]
fn transaction<T, E, F>(&self, f: F) -> TransactionResult<T, E> where
F: FnOnce() -> Result<T, E>,
[src]
F: FnOnce() -> Result<T, E>,
Executes the given function inside of a database transaction. When a transaction is already occurring, savepoints will be used to emulate a nested transaction. Read more
fn begin_test_transaction(&self) -> QueryResult<()>
[src]
Creates a transaction that will never be committed. This is useful for tests. Panics if called while inside of a transaction. Read more
fn test_transaction<T, E, F>(&self, f: F) -> T where
F: FnOnce() -> Result<T, E>,
[src]
F: FnOnce() -> Result<T, E>,
Executes the given function inside a transaction, but does not commit it. Panics if the given function returns an Err
. Read more