sqlite-loadable 0.0.5

A framework for building SQLite extensions in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// rust bindgen for some reason is defining many SQLite constants
/// as u32, which can't safely be casted into i32. So, here we
/// hardcode some of those codes to avoid unwrapping

/// https://www.sqlite.org/rescode.html#constraint
pub const SQLITE_CONSTRAINT: i32 = 19;

/// https://www.sqlite.org/rescode.html#error
pub const SQLITE_ERROR: i32 = 1;

/// https://www.sqlite.org/rescode.html#ok
pub const SQLITE_OKAY: i32 = 0;

/// https://www.sqlite.org/rescode.html#internal
pub const SQLITE_INTERNAL: i32 = 2;