From 0d171b9cbdd05704587485aa206e35f197c0b29e Mon Sep 17 00:00:00 2001 From: adz Date: Thu, 16 Nov 2023 22:00:28 +0100 Subject: [PATCH] Actually, we know what the issue is now --- aquadoggo_cli/src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aquadoggo_cli/src/config.rs b/aquadoggo_cli/src/config.rs index 1a9ad2455..71d8b80cd 100644 --- a/aquadoggo_cli/src/config.rs +++ b/aquadoggo_cli/src/config.rs @@ -301,8 +301,9 @@ impl Default for Configuration { let db_name = format!("dbmem{}", rand::random::()); // 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") };