Skip to content

Commit df6cdd8

Browse files
authored
Merge pull request hyperledger-indy#813 from AxelNennker/sqllite
new const _SQLITE_DB to remove chance that a dev changes one sqlite.d…
2 parents e5189dd + 03bb50c commit df6cdd8

File tree

1 file changed

+3
-3
lines changed
  • libindy/src/services/wallet/storage/default

1 file changed

+3
-3
lines changed

libindy/src/services/wallet/storage/default/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use super::super::indy_crypto::utils::json::{JsonDecodable, JsonEncodable};
1919

2020
use super::{StorageIterator, WalletStorageType, WalletStorage, StorageEntity, EncryptedValue, Tag, TagName};
2121

22-
22+
const _SQLITE_DB: &str = "sqlite.db";
2323
const _PLAIN_TAGS_QUERY: &str = "SELECT name, value from tags_plaintext where item_id = ?";
2424
const _ENCRYPTED_TAGS_QUERY: &str = "SELECT name, value from tags_encrypted where item_id = ?";
2525
const _CREATE_SCHEMA: &str = "
@@ -251,7 +251,7 @@ impl SQLiteStorageType {
251251

252252
fn create_path(name: &str) -> std::path::PathBuf {
253253
let mut path = EnvironmentUtils::wallet_path(name);
254-
path.push("sqlite.db");
254+
path.push(_SQLITE_DB );
255255
path
256256
}
257257
}
@@ -759,7 +759,7 @@ mod tests {
759759

760760
fn _db_file_path() -> std::path::PathBuf {
761761
let mut db_file_path = _wallet_base_path();
762-
db_file_path.push("sqlite.db");
762+
db_file_path.push(_SQLITE_DB );
763763
db_file_path
764764
}
765765

0 commit comments

Comments
 (0)