mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Add #[deriving(Copy)] as appropriate
This commit is contained in:
parent
13fc87fe11
commit
678fd0f3a3
@ -7,6 +7,7 @@ pub use SqliteTransactionBehavior::{
|
|||||||
|
|
||||||
/// Options for transaction behavior. See [BEGIN
|
/// Options for transaction behavior. See [BEGIN
|
||||||
/// TRANSACTION](http://www.sqlite.org/lang_transaction.html) for details.
|
/// TRANSACTION](http://www.sqlite.org/lang_transaction.html) for details.
|
||||||
|
#[deriving(Copy)]
|
||||||
pub enum SqliteTransactionBehavior {
|
pub enum SqliteTransactionBehavior {
|
||||||
SqliteTransactionDeferred,
|
SqliteTransactionDeferred,
|
||||||
SqliteTransactionImmediate,
|
SqliteTransactionImmediate,
|
||||||
|
@ -141,6 +141,7 @@ impl<T: ToSql> ToSql for Option<T> {
|
|||||||
/// conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
|
/// conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[deriving(Copy)]
|
||||||
pub struct Null;
|
pub struct Null;
|
||||||
|
|
||||||
impl ToSql for Null {
|
impl ToSql for Null {
|
||||||
|
Loading…
Reference in New Issue
Block a user