Lines Matching refs:rusqlite
79 use rusqlite::{
100 /// Wrapper for `rusqlite::TransactionBehavior` which includes information about the transaction
108 impl From<TransactionBehavior> for rusqlite::TransactionBehavior {
111 TransactionBehavior::Deferred => rusqlite::TransactionBehavior::Deferred,
112 TransactionBehavior::Immediate(_) => rusqlite::TransactionBehavior::Immediate,
301 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
340 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
376 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
434 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
496 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
745 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
820 fn to_sql(&self) -> rusqlite::Result<ToSqlOutput> {
1229 rows.collect::<Result<Vec<(i64, Vec<u8>)>, rusqlite::Error>>()
1451 e.root_cause().downcast_ref::<rusqlite::ffi::Error>(),
1452 Some(rusqlite::ffi::Error { code: rusqlite::ErrorCode::DatabaseBusy, .. })
1453 | Some(rusqlite::ffi::Error { code: rusqlite::ErrorCode::DatabaseLocked, .. })
2766 fn insert_with_retry(inserter: impl Fn(i64) -> rusqlite::Result<usize>) -> Result<i64> {
2774 Err(rusqlite::Error::SqliteFailure(
2996 .collect::<rusqlite::Result<Vec<String>>>()?;
4215 .transaction_with_behavior(rusqlite::TransactionBehavior::Immediate)
4220 .transaction_with_behavior(rusqlite::TransactionBehavior::Immediate)
4224 if let Some(rusqlite::ffi::Error { code: rusqlite::ErrorCode::DatabaseBusy, .. }) =
4225 root_cause.downcast_ref::<rusqlite::ffi::Error>()
4233 root_cause.downcast_ref::<rusqlite::ffi::Error>()