Skip to content

Commit

Permalink
Actually, we know what the issue is now
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Nov 16, 2023
1 parent 133e5ff commit 0d171b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aquadoggo_cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,9 @@ impl Default for Configuration {
let db_name = format!("dbmem{}", rand::random::<u32>());

// Set "mode=memory" to enable SQLite running in-memory and set "cache=shared", as
// setting it to "private" would break SQLite in a multi-thread runtime (for unknown
// reasons so far, it seems to work in Rust tests which are single-threaded).
// setting it to "private" would break sqlx / SQLite.
//
// See related issue: https://github.com/launchbadge/sqlx/issues/2510
format!("sqlite://file:{db_name}?mode=memory&cache=shared")
};

Expand Down

0 comments on commit 0d171b9

Please sign in to comment.