feat(sqlite): create empty database file on connect if missing
This commit is contained in:
1 parent
db7b730dd3
commit
558b9301a2
11 files changed
+53
-3
No files matched your search
@@ -46,6 +46,13 @@ pub async fn connect_path_create_if_missing(path: &str) -> Result<SqliteHandle,
|
||||
connect_path_with_options(path, true, Vec::new()).await
|
||||
}
|
||||
|
||||
pub async fn connect_path_create_if_missing_with_extensions(
|
||||
path: &str,
|
||||
extensions: Vec<SqliteExtensionSpec>,
|
||||
) -> Result<SqliteHandle, String> {
|
||||
connect_path_with_options(path, true, extensions).await
|
||||
}
|
||||
|
||||
async fn connect_path_with_options(
|
||||
path: &str,
|
||||
create_if_missing: bool,
|
||||
|
||||
Reference in new issue
Block a user