mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-19 20:39:44 +08:00
Owning statement caveat
This commit is contained in:
@@ -2,6 +2,9 @@ extern crate rusqlite;
|
||||
use ouroboros::self_referencing;
|
||||
use rusqlite::{CachedStatement, Connection, Result, Rows};
|
||||
|
||||
/// Caveat: single statement at a time for one connection.
|
||||
/// But if you need multiple statements, you can still create your own struct
|
||||
/// with multiple fields (one for each statement).
|
||||
#[self_referencing]
|
||||
struct OwningStatement {
|
||||
conn: Connection,
|
||||
|
Reference in New Issue
Block a user