Use native drivers for Bedrock SQL storage

This commit is contained in:
2026-11-30 07:02:20 +08:00
parent 698f126033
commit 9f3848199d
10 changed files with 1687 additions and 980 deletions
+13
View File
@@ -136,6 +136,19 @@ async fn sqlite_persists_across_reopening_and_enforces_read_only() {
));
}
#[tokio::test]
async fn sqlite_read_only_startup_does_not_create_a_database() {
let folder = tempfile::tempdir().unwrap();
let filename = folder.path().join("missing.sqlite");
let config = DeploymentConfig {
read_only: true,
sqlite_path: filename.to_str().unwrap().into(),
..DeploymentConfig::default()
};
assert!(connect(&config).await.is_err());
assert!(!filename.exists());
}
#[tokio::test]
async fn postgres_reads_replicas_and_falls_back_when_behind() {
let Some(url) = test_url("BEDROCK_TEST_POSTGRES") else {