Closed Aecron closed 2 years ago
Found it!
Cargo.toml
# For dev and to easy first time build experience, just have memory surrealdb for now.
surrealdb = {version = "1.0.0-beta.8", default-features=false, features = ['parallel', 'kv-mem'] }
Thanks for reporting. I need to find bubble up this note somewhere to that dev knows that by default, only memory.
so how do we create a file store with surrealdb? any changes need to be made to the feature flags?
Hello,
First of all, this template looks quite awesome, thank you for your contribution. However, I encounter a slight issue (being absolutely new at Rust, SurrealDB, and Tauri).
The very first thing I've tried to modify was the persistence of the datastore, by providing a
"file://"
path to the Datastore constructor instore/mod.rs
Store::new()
.Unfortunately, that yielded the error
Ds("Unable to load the specified datastore")
.Trying a vanilla loading of a file-persistent Datastore at the
main()
level had the same result, while I encounter no issue in a manually bootstrapped Rust-Tauri-SurrealDB codebase.Any idea what may cause this?