mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-29 21:04:23 +01:00
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:
@@ -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>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user