mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Cleanup use statements.
This commit is contained in:
parent
db7345624f
commit
ddd976c158
@ -1,11 +1,11 @@
|
|||||||
//use std::collections::HashMap;
|
//use std::collections::HashMap;
|
||||||
use std::ffi::{CString};
|
use std::ffi::CString;
|
||||||
use libc::{c_int};
|
use libc::c_int;
|
||||||
|
|
||||||
use super::ffi;
|
use super::ffi;
|
||||||
|
|
||||||
use {SqliteResult, SqliteError, SqliteConnection, SqliteStatement, SqliteRows, SqliteRow};
|
use {SqliteResult, SqliteError, SqliteConnection, SqliteStatement, SqliteRows, SqliteRow};
|
||||||
use types::{ToSql};
|
use types::ToSql;
|
||||||
|
|
||||||
impl SqliteConnection {
|
impl SqliteConnection {
|
||||||
/// Convenience method to prepare and execute a single SQL statement with named parameter(s).
|
/// Convenience method to prepare and execute a single SQL statement with named parameter(s).
|
||||||
@ -130,4 +130,4 @@ mod test {
|
|||||||
let mut stmt = db.prepare("SELECT * FROM test where name = :name").unwrap();
|
let mut stmt = db.prepare("SELECT * FROM test where name = :name").unwrap();
|
||||||
stmt.query_named(&[(":name", &"one")]).unwrap();
|
stmt.query_named(&[(":name", &"one")]).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user