You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you open foo.db on a large SQLite database, it will take a very long time and can't be interrupted by ctrl+c.
It's tricky to fix this because the SQLiteDatabase struct implements CustomValue, and CustomValue impls must derive Serialize+Deserialize because CustomValue uses typetag. And so we can't just add a ctrlc: Option<Arc<AtomicBool>> field to SQLiteDatabase because that can't be serialized...
This is getting into some rather complicated areas of Rust, hopefully someone can find a good solution.
Describe the bug
If you
open foo.db
on a large SQLite database, it will take a very long time and can't be interrupted byctrl+c
.It's tricky to fix this because the
SQLiteDatabase
struct implementsCustomValue
, andCustomValue
impls must deriveSerialize
+Deserialize
becauseCustomValue
usestypetag
. And so we can't just add actrlc: Option<Arc<AtomicBool>>
field toSQLiteDatabase
because that can't be serialized...This is getting into some rather complicated areas of Rust, hopefully someone can find a good solution.
How to reproduce
open foo.db
ctrl+c
, it does nothingExpected behavior
ctrl+c
should interrupt opening a database.Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: