From 84fc82f48ccdfa55408abb4edf6c7fb7f91343d6 Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Mon, 4 May 2015 21:44:05 -0400 Subject: [PATCH] Add remaining datatype constaints to libsqlite3-sys --- Cargo.toml | 2 +- libsqlite3-sys/Cargo.toml | 2 +- libsqlite3-sys/src/lib.rs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3d9db8a..e7ba5ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,4 +25,4 @@ tempdir = "~0.3.4" [dependencies.libsqlite3-sys] path = "libsqlite3-sys" -version = "0.0.13" +version = "0.1.0" diff --git a/libsqlite3-sys/Cargo.toml b/libsqlite3-sys/Cargo.toml index d05d8c7..b4b48a4 100644 --- a/libsqlite3-sys/Cargo.toml +++ b/libsqlite3-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libsqlite3-sys" -version = "0.0.13" +version = "0.1.0" authors = ["John Gallagher "] repository = "https://github.com/jgallagher/rusqlite" description = "Native bindings to the libsqlite3 library" diff --git a/libsqlite3-sys/src/lib.rs b/libsqlite3-sys/src/lib.rs index 321d228..b4b5186 100644 --- a/libsqlite3-sys/src/lib.rs +++ b/libsqlite3-sys/src/lib.rs @@ -42,7 +42,11 @@ pub const SQLITE_ROW : c_int = 100; pub const SQLITE_DONE : c_int = 101; // SQLite datatype constants. -pub const SQLITE_NULL : c_int = 5; +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; pub type SqliteDestructor = extern "C" fn(*mut c_void);