feat(sqlite): support SQLCipher encrypted databases

This commit is contained in:
t8y2 committed 2026-07-06 14:24:28 +08:00
1 parent 92ef1ac3cf
commit e84fb12fcc
6 files changed
+139 -9

No files matched your search

+6 -1
View File
@@ -973,7 +973,12 @@ impl AppState {
})
.collect();
PoolKind::Sqlite(
db::sqlite::connect_path_with_extensions(&expand_tilde(&db_config.host), extensions).await?,
db::sqlite::connect_path_with_cipher_key_and_extensions(
&expand_tilde(&db_config.host),
&db_config.password,
extensions,
)
.await?,
)
}
DatabaseType::Rqlite => {