mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
Add a comment
This commit is contained in:
parent
4431d24fd7
commit
af29001883
@ -87,6 +87,7 @@ pub struct Database {
|
||||
}
|
||||
|
||||
impl Database {
|
||||
/// Open a database.
|
||||
pub fn open(path: &Path) -> Result<Database> {
|
||||
let mut db = 0 as *mut _;
|
||||
unsafe { success!(raw::sqlite3_open(path_to_c_str!(path), &mut db)) };
|
||||
|
Loading…
x
Reference in New Issue
Block a user