Merge 'bindings/rust: Implement Debug for Connection' from Charlie

A simple change to implement the `Debug` trait for the `Connection`,
similar to how it is implemented for `Database`.  This should help users
in their application code with wrapping the connection.

Closes #1798
This commit is contained in:
Pekka Enberg 2025-06-24 16:11:54 +03:00
commit 2313c33015

View file

@ -148,6 +148,12 @@ impl Connection {
}
}
impl Debug for Connection {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Connection").finish()
}
}
pub struct Statement {
inner: Arc<Mutex<limbo_core::Statement>>,
}