asqlite 1.3.1

SQLite wrapper using async Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    blocking::{self, sqlite::Connection},
    Result,
};
use std::ffi::CStr;

#[derive(Clone, Copy)]
pub(crate) struct ConnectionFactory;

impl blocking::ConnectionFactory for ConnectionFactory {
    type Connection = Connection;

    #[inline]
    fn open(&self, path: &CStr, flags: i32) -> Result<Connection> {
        Connection::open(path, flags)
    }
}