2015-12-13 05:39:05 +08:00
|
|
|
// bindgen.rs was created with bindgen 0.15.0 against sqlite3 3.8.10
|
|
|
|
|
2015-02-24 04:22:34 +08:00
|
|
|
#![allow(non_snake_case)]
|
|
|
|
|
|
|
|
extern crate libc;
|
|
|
|
|
2014-10-20 07:56:41 +08:00
|
|
|
pub use self::bindgen::*;
|
2015-12-13 12:13:48 +08:00
|
|
|
pub use self::error::*;
|
2015-02-24 04:22:34 +08:00
|
|
|
|
2014-10-20 07:56:41 +08:00
|
|
|
use std::mem;
|
2015-07-27 01:43:43 +08:00
|
|
|
use libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
|
|
|
|
mod bindgen;
|
2015-12-13 12:13:48 +08:00
|
|
|
mod error;
|
2015-12-13 12:10:21 +08:00
|
|
|
|
2014-10-20 07:56:41 +08:00
|
|
|
// SQLite datatype constants.
|
2015-05-05 09:44:05 +08:00
|
|
|
pub const SQLITE_INTEGER : c_int = 1;
|
|
|
|
pub const SQLITE_FLOAT : c_int = 2;
|
|
|
|
pub const SQLITE_TEXT : c_int = 3;
|
|
|
|
pub const SQLITE_BLOB : c_int = 4;
|
|
|
|
pub const SQLITE_NULL : c_int = 5;
|
2014-10-20 07:56:41 +08:00
|
|
|
|
2015-07-27 01:43:43 +08:00
|
|
|
pub fn SQLITE_STATIC() -> sqlite3_destructor_type {
|
|
|
|
Some(unsafe { mem::transmute(0isize) })
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
|
2015-07-27 01:43:43 +08:00
|
|
|
pub fn SQLITE_TRANSIENT() -> sqlite3_destructor_type {
|
|
|
|
Some(unsafe { mem::transmute(-1isize) })
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|
|
|
|
|
2015-08-01 23:21:41 +08:00
|
|
|
pub const SQLITE_CONFIG_LOG : c_int = 16;
|
2015-08-09 15:52:53 +08:00
|
|
|
pub const SQLITE_UTF8 : c_int = 1;
|
|
|
|
pub const SQLITE_DETERMINISTIC : c_int = 0x800;
|