bitwarden_state/sdk_managed/configuration.rs
1use std::path::PathBuf;
2
3#[derive(Debug)]
4/// Configuration for the database used by the SDK.
5pub enum DatabaseConfiguration {
6 /// SQLite configuration, used on native platforms
7 Sqlite {
8 /// The name of the SQLite database. Different users should have different database
9 /// names to avoid conflicts.
10 db_name: String,
11 /// The path to the folder in which the SQLite database should be stored.
12 folder_path: PathBuf,
13 },
14
15 /// IndexedDB configuration, used on WebAssembly platforms
16 IndexedDb {
17 /// The name of the IndexedDB database. Different users should have different database
18 /// names to avoid conflicts.
19 db_name: String,
20 },
21}