rusqlite/libsqlite3-sys/src/lib.rs

34 lines
776 B
Rust
Raw Normal View History

// bindgen.rs was created with bindgen 0.15.0 against sqlite3 3.8.10
#![allow(non_snake_case)]
extern crate libc;
2014-10-20 07:56:41 +08:00
pub use self::bindgen::*;
pub use self::error::*;
2014-10-20 07:56:41 +08:00
use std::mem;
use libc::c_int;
2014-10-20 07:56:41 +08:00
mod bindgen;
mod error;
2014-10-20 07:56:41 +08:00
// SQLite datatype constants.
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
pub fn SQLITE_STATIC() -> sqlite3_destructor_type {
Some(unsafe { mem::transmute(0isize) })
}
2014-10-20 07:56:41 +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;
pub const SQLITE_UTF8 : c_int = 1;
pub const SQLITE_DETERMINISTIC : c_int = 0x800;