mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
Centralize SQLite connection configuration (#33938)
## What changed - Add `SqliteConfig` as the shared entry point for read-write and read-only SQLite pools. - Apply consistent WAL, synchronization, auto-vacuum, busy-timeout, logging, and pool-size settings to writable Codex databases. - Route state runtime, audit, CLI, and test database connections through the shared configuration. ## Testing - Run migration tests against temporary on-disk databases opened through `SqliteConfig`, including the concurrent-writer repair case. GitOrigin-RevId: e3946b98bde04c47574532ac8b1a7bb2b03edd97
This commit is contained in:
1 parent
23899f7cb6
commit
6bd3f5e3db
14 files changed
+220
-166
No files matched your search
@@ -27,7 +27,7 @@ use uuid::Uuid;
|
||||
use crate::ThreadMetadata;
|
||||
|
||||
#[cfg(test)]
|
||||
pub(super) fn unique_temp_dir() -> PathBuf {
|
||||
pub(crate) fn unique_temp_dir() -> PathBuf {
|
||||
let nanos = SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.map_or(0, |duration| duration.as_nanos());
|
||||
|
||||
Reference in new issue
Block a user