Lines Matching refs:Connection
1 use crate::{Connection, Result};
63 conn: &'conn Connection,
91 conn: &'conn Connection,
105 pub fn new(conn: &mut Connection, behavior: TransactionBehavior) -> Result<Transaction<'_>> { in new() argument
115 conn: &Connection, in new_unchecked() argument
220 type Target = Connection;
222 fn deref(&self) -> &Connection { in deref() argument
236 conn: &Connection, in with_depth_and_name() argument
251 fn with_depth(conn: &Connection, depth: u32) -> Result<Savepoint<'_>> { in with_depth() argument
257 pub fn new(conn: &mut Connection) -> Result<Savepoint<'_>> { in new()
262 pub fn with_name<T: Into<String>>(conn: &mut Connection, name: T) -> Result<Savepoint<'_>> { in with_name() argument
333 type Target = Connection;
335 fn deref(&self) -> &Connection { in deref() argument
347 impl Connection { impl
470 use crate::{Connection, Error, NO_PARAMS};
472 fn checked_memory_handle() -> Connection { in checked_memory_handle()
473 let db = Connection::open_in_memory().unwrap(); in checked_memory_handle()
656 let mut conn = Connection::open_in_memory().unwrap(); in test_rc()
663 fn insert(x: i32, conn: &Connection) { in insert() argument
667 fn assert_current_sum(x: i32, conn: &Connection) { in assert_current_sum() argument