mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00: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:
commit
2313c33015
1 changed files with 6 additions and 0 deletions
|
@ -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>>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue