mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
Updates to track rustc nightly
This commit is contained in:
parent
bf6d44e501
commit
5e04b98840
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rusqlite"
|
name = "rusqlite"
|
||||||
version = "0.0.15"
|
version = "0.0.16"
|
||||||
authors = ["John Gallagher <jgallagher@bignerdranch.com>"]
|
authors = ["John Gallagher <jgallagher@bignerdranch.com>"]
|
||||||
description = "Ergonomic wrapper for SQLite"
|
description = "Ergonomic wrapper for SQLite"
|
||||||
repository = "https://github.com/jgallagher/rusqlite"
|
repository = "https://github.com/jgallagher/rusqlite"
|
||||||
@ -22,4 +22,4 @@ libc = "~0.1"
|
|||||||
|
|
||||||
[dependencies.libsqlite3-sys]
|
[dependencies.libsqlite3-sys]
|
||||||
path = "libsqlite3-sys"
|
path = "libsqlite3-sys"
|
||||||
version = "0.0.12"
|
version = "0.0.13"
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# Version 0.0.16
|
||||||
|
|
||||||
|
* Updates to track rustc nightly.
|
||||||
|
|
||||||
# Version 0.0.15
|
# Version 0.0.15
|
||||||
|
|
||||||
* Make SqliteConnection `Send`.
|
* Make SqliteConnection `Send`.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "libsqlite3-sys"
|
name = "libsqlite3-sys"
|
||||||
version = "0.0.12"
|
version = "0.0.13"
|
||||||
authors = ["John Gallagher <jgallagher@bignerdranch.com>"]
|
authors = ["John Gallagher <jgallagher@bignerdranch.com>"]
|
||||||
repository = "https://github.com/jgallagher/rusqlite"
|
repository = "https://github.com/jgallagher/rusqlite"
|
||||||
description = "Native bindings to the libsqlite3 library"
|
description = "Native bindings to the libsqlite3 library"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#![allow(raw_pointer_derive, non_snake_case, non_camel_case_types)]
|
#![allow(raw_pointer_derive, non_snake_case, non_camel_case_types)]
|
||||||
/* Running `target/bindgen /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include` */
|
/* Running `target/bindgen /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include` */
|
||||||
|
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3 { }
|
pub enum Struct_sqlite3 { }
|
||||||
pub type sqlite3 = Struct_sqlite3;
|
pub type sqlite3 = Struct_sqlite3;
|
||||||
pub type sqlite_int64 = ::libc::c_longlong;
|
pub type sqlite_int64 = ::libc::c_longlong;
|
||||||
@ -16,13 +15,11 @@ pub type sqlite3_callback =
|
|||||||
-> ::libc::c_int>;
|
-> ::libc::c_int>;
|
||||||
pub type sqlite3_file = Struct_sqlite3_file;
|
pub type sqlite3_file = Struct_sqlite3_file;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_file {
|
pub struct Struct_sqlite3_file {
|
||||||
pub pMethods: *const Struct_sqlite3_io_methods,
|
pub pMethods: *const Struct_sqlite3_io_methods,
|
||||||
}
|
}
|
||||||
pub type sqlite3_io_methods = Struct_sqlite3_io_methods;
|
pub type sqlite3_io_methods = Struct_sqlite3_io_methods;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_io_methods {
|
pub struct Struct_sqlite3_io_methods {
|
||||||
pub iVersion: ::libc::c_int,
|
pub iVersion: ::libc::c_int,
|
||||||
pub xClose: ::std::option::Option<extern "C" fn(arg1: *mut sqlite3_file)
|
pub xClose: ::std::option::Option<extern "C" fn(arg1: *mut sqlite3_file)
|
||||||
@ -97,13 +94,11 @@ pub struct Struct_sqlite3_io_methods {
|
|||||||
deleteFlag: ::libc::c_int)
|
deleteFlag: ::libc::c_int)
|
||||||
-> ::libc::c_int>,
|
-> ::libc::c_int>,
|
||||||
}
|
}
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3_mutex { }
|
pub enum Struct_sqlite3_mutex { }
|
||||||
pub type sqlite3_mutex = Struct_sqlite3_mutex;
|
pub type sqlite3_mutex = Struct_sqlite3_mutex;
|
||||||
pub type sqlite3_vfs = Struct_sqlite3_vfs;
|
pub type sqlite3_vfs = Struct_sqlite3_vfs;
|
||||||
pub type sqlite3_syscall_ptr = ::std::option::Option<extern "C" fn()>;
|
pub type sqlite3_syscall_ptr = ::std::option::Option<extern "C" fn()>;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_vfs {
|
pub struct Struct_sqlite3_vfs {
|
||||||
pub iVersion: ::libc::c_int,
|
pub iVersion: ::libc::c_int,
|
||||||
pub szOsFile: ::libc::c_int,
|
pub szOsFile: ::libc::c_int,
|
||||||
@ -196,7 +191,6 @@ pub struct Struct_sqlite3_vfs {
|
|||||||
}
|
}
|
||||||
pub type sqlite3_mem_methods = Struct_sqlite3_mem_methods;
|
pub type sqlite3_mem_methods = Struct_sqlite3_mem_methods;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_mem_methods {
|
pub struct Struct_sqlite3_mem_methods {
|
||||||
pub xMalloc: ::std::option::Option<extern "C" fn(arg1: ::libc::c_int)
|
pub xMalloc: ::std::option::Option<extern "C" fn(arg1: ::libc::c_int)
|
||||||
-> *mut ::libc::c_void>,
|
-> *mut ::libc::c_void>,
|
||||||
@ -216,13 +210,10 @@ pub struct Struct_sqlite3_mem_methods {
|
|||||||
(arg1: *mut ::libc::c_void)>,
|
(arg1: *mut ::libc::c_void)>,
|
||||||
pub pAppData: *mut ::libc::c_void,
|
pub pAppData: *mut ::libc::c_void,
|
||||||
}
|
}
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3_stmt { }
|
pub enum Struct_sqlite3_stmt { }
|
||||||
pub type sqlite3_stmt = Struct_sqlite3_stmt;
|
pub type sqlite3_stmt = Struct_sqlite3_stmt;
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_Mem { }
|
pub enum Struct_Mem { }
|
||||||
pub type sqlite3_value = Struct_Mem;
|
pub type sqlite3_value = Struct_Mem;
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3_context { }
|
pub enum Struct_sqlite3_context { }
|
||||||
pub type sqlite3_context = Struct_sqlite3_context;
|
pub type sqlite3_context = Struct_sqlite3_context;
|
||||||
pub type sqlite3_destructor_type =
|
pub type sqlite3_destructor_type =
|
||||||
@ -232,7 +223,6 @@ pub type sqlite3_index_info = Struct_sqlite3_index_info;
|
|||||||
pub type sqlite3_vtab_cursor = Struct_sqlite3_vtab_cursor;
|
pub type sqlite3_vtab_cursor = Struct_sqlite3_vtab_cursor;
|
||||||
pub type sqlite3_module = Struct_sqlite3_module;
|
pub type sqlite3_module = Struct_sqlite3_module;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_module {
|
pub struct Struct_sqlite3_module {
|
||||||
pub iVersion: ::libc::c_int,
|
pub iVersion: ::libc::c_int,
|
||||||
pub xCreate: ::std::option::Option<extern "C" fn
|
pub xCreate: ::std::option::Option<extern "C" fn
|
||||||
@ -342,7 +332,6 @@ pub struct Struct_sqlite3_module {
|
|||||||
-> ::libc::c_int>,
|
-> ::libc::c_int>,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_index_info {
|
pub struct Struct_sqlite3_index_info {
|
||||||
pub nConstraint: ::libc::c_int,
|
pub nConstraint: ::libc::c_int,
|
||||||
pub aConstraint: *mut Struct_sqlite3_index_constraint,
|
pub aConstraint: *mut Struct_sqlite3_index_constraint,
|
||||||
@ -356,7 +345,6 @@ pub struct Struct_sqlite3_index_info {
|
|||||||
pub estimatedCost: ::libc::c_double,
|
pub estimatedCost: ::libc::c_double,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_index_constraint {
|
pub struct Struct_sqlite3_index_constraint {
|
||||||
pub iColumn: ::libc::c_int,
|
pub iColumn: ::libc::c_int,
|
||||||
pub op: ::libc::c_uchar,
|
pub op: ::libc::c_uchar,
|
||||||
@ -364,35 +352,29 @@ pub struct Struct_sqlite3_index_constraint {
|
|||||||
pub iTermOffset: ::libc::c_int,
|
pub iTermOffset: ::libc::c_int,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_index_orderby {
|
pub struct Struct_sqlite3_index_orderby {
|
||||||
pub iColumn: ::libc::c_int,
|
pub iColumn: ::libc::c_int,
|
||||||
pub desc: ::libc::c_uchar,
|
pub desc: ::libc::c_uchar,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_index_constraint_usage {
|
pub struct Struct_sqlite3_index_constraint_usage {
|
||||||
pub argvIndex: ::libc::c_int,
|
pub argvIndex: ::libc::c_int,
|
||||||
pub omit: ::libc::c_uchar,
|
pub omit: ::libc::c_uchar,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_vtab {
|
pub struct Struct_sqlite3_vtab {
|
||||||
pub pModule: *const sqlite3_module,
|
pub pModule: *const sqlite3_module,
|
||||||
pub nRef: ::libc::c_int,
|
pub nRef: ::libc::c_int,
|
||||||
pub zErrMsg: *mut ::libc::c_char,
|
pub zErrMsg: *mut ::libc::c_char,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_vtab_cursor {
|
pub struct Struct_sqlite3_vtab_cursor {
|
||||||
pub pVtab: *mut sqlite3_vtab,
|
pub pVtab: *mut sqlite3_vtab,
|
||||||
}
|
}
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3_blob { }
|
pub enum Struct_sqlite3_blob { }
|
||||||
pub type sqlite3_blob = Struct_sqlite3_blob;
|
pub type sqlite3_blob = Struct_sqlite3_blob;
|
||||||
pub type sqlite3_mutex_methods = Struct_sqlite3_mutex_methods;
|
pub type sqlite3_mutex_methods = Struct_sqlite3_mutex_methods;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_mutex_methods {
|
pub struct Struct_sqlite3_mutex_methods {
|
||||||
pub xMutexInit: ::std::option::Option<extern "C" fn() -> ::libc::c_int>,
|
pub xMutexInit: ::std::option::Option<extern "C" fn() -> ::libc::c_int>,
|
||||||
pub xMutexEnd: ::std::option::Option<extern "C" fn() -> ::libc::c_int>,
|
pub xMutexEnd: ::std::option::Option<extern "C" fn() -> ::libc::c_int>,
|
||||||
@ -414,19 +396,16 @@ pub struct Struct_sqlite3_mutex_methods {
|
|||||||
(arg1: *mut sqlite3_mutex)
|
(arg1: *mut sqlite3_mutex)
|
||||||
-> ::libc::c_int>,
|
-> ::libc::c_int>,
|
||||||
}
|
}
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3_pcache { }
|
pub enum Struct_sqlite3_pcache { }
|
||||||
pub type sqlite3_pcache = Struct_sqlite3_pcache;
|
pub type sqlite3_pcache = Struct_sqlite3_pcache;
|
||||||
pub type sqlite3_pcache_page = Struct_sqlite3_pcache_page;
|
pub type sqlite3_pcache_page = Struct_sqlite3_pcache_page;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_pcache_page {
|
pub struct Struct_sqlite3_pcache_page {
|
||||||
pub pBuf: *mut ::libc::c_void,
|
pub pBuf: *mut ::libc::c_void,
|
||||||
pub pExtra: *mut ::libc::c_void,
|
pub pExtra: *mut ::libc::c_void,
|
||||||
}
|
}
|
||||||
pub type sqlite3_pcache_methods2 = Struct_sqlite3_pcache_methods2;
|
pub type sqlite3_pcache_methods2 = Struct_sqlite3_pcache_methods2;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_pcache_methods2 {
|
pub struct Struct_sqlite3_pcache_methods2 {
|
||||||
pub iVersion: ::libc::c_int,
|
pub iVersion: ::libc::c_int,
|
||||||
pub pArg: *mut ::libc::c_void,
|
pub pArg: *mut ::libc::c_void,
|
||||||
@ -469,7 +448,6 @@ pub struct Struct_sqlite3_pcache_methods2 {
|
|||||||
}
|
}
|
||||||
pub type sqlite3_pcache_methods = Struct_sqlite3_pcache_methods;
|
pub type sqlite3_pcache_methods = Struct_sqlite3_pcache_methods;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_pcache_methods {
|
pub struct Struct_sqlite3_pcache_methods {
|
||||||
pub pArg: *mut ::libc::c_void,
|
pub pArg: *mut ::libc::c_void,
|
||||||
pub xInit: ::std::option::Option<extern "C" fn(arg1: *mut ::libc::c_void)
|
pub xInit: ::std::option::Option<extern "C" fn(arg1: *mut ::libc::c_void)
|
||||||
@ -506,12 +484,10 @@ pub struct Struct_sqlite3_pcache_methods {
|
|||||||
pub xDestroy: ::std::option::Option<extern "C" fn
|
pub xDestroy: ::std::option::Option<extern "C" fn
|
||||||
(arg1: *mut sqlite3_pcache)>,
|
(arg1: *mut sqlite3_pcache)>,
|
||||||
}
|
}
|
||||||
#[derive(Copy)]
|
|
||||||
pub enum Struct_sqlite3_backup { }
|
pub enum Struct_sqlite3_backup { }
|
||||||
pub type sqlite3_backup = Struct_sqlite3_backup;
|
pub type sqlite3_backup = Struct_sqlite3_backup;
|
||||||
pub type sqlite3_rtree_geometry = Struct_sqlite3_rtree_geometry;
|
pub type sqlite3_rtree_geometry = Struct_sqlite3_rtree_geometry;
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy)]
|
|
||||||
pub struct Struct_sqlite3_rtree_geometry {
|
pub struct Struct_sqlite3_rtree_geometry {
|
||||||
pub pContext: *mut ::libc::c_void,
|
pub pContext: *mut ::libc::c_void,
|
||||||
pub nParam: ::libc::c_int,
|
pub nParam: ::libc::c_int,
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
//! }
|
//! }
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
#![feature(unsafe_destructor, unique)]
|
#![feature(unique)]
|
||||||
#![cfg_attr(test, feature(test))]
|
#![cfg_attr(test, feature(test))]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
@ -673,7 +673,6 @@ impl<'conn> fmt::Debug for SqliteStatement<'conn> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unsafe_destructor]
|
|
||||||
impl<'conn> Drop for SqliteStatement<'conn> {
|
impl<'conn> Drop for SqliteStatement<'conn> {
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
@ -25,7 +25,6 @@ impl<'conn> SqliteLoadExtensionGuard<'conn> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unsafe_destructor]
|
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
impl<'conn> Drop for SqliteLoadExtensionGuard<'conn> {
|
impl<'conn> Drop for SqliteLoadExtensionGuard<'conn> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
@ -7,7 +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.
|
||||||
#[derive(Copy)]
|
#[derive(Copy,Clone)]
|
||||||
pub enum SqliteTransactionBehavior {
|
pub enum SqliteTransactionBehavior {
|
||||||
SqliteTransactionDeferred,
|
SqliteTransactionDeferred,
|
||||||
SqliteTransactionImmediate,
|
SqliteTransactionImmediate,
|
||||||
@ -149,7 +149,6 @@ impl<'conn> SqliteTransaction<'conn> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unsafe_destructor]
|
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
impl<'conn> Drop for SqliteTransaction<'conn> {
|
impl<'conn> Drop for SqliteTransaction<'conn> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
@ -152,7 +152,7 @@ impl<T: ToSql> ToSql for Option<T> {
|
|||||||
/// conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
|
/// conn.execute("INSERT INTO people (name) VALUES (?)", &[&Null])
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Copy)]
|
#[derive(Copy,Clone)]
|
||||||
pub struct Null;
|
pub struct Null;
|
||||||
|
|
||||||
impl ToSql for Null {
|
impl ToSql for Null {
|
||||||
|
Loading…
Reference in New Issue
Block a user