sqlite_loadable/constants.rs
1/// rust bindgen for some reason is defining many SQLite constants
2/// as u32, which can't safely be casted into i32. So, here we
3/// hardcode some of those codes to avoid unwrapping
4
5/// https://www.sqlite.org/rescode.html#constraint
6pub const SQLITE_CONSTRAINT: i32 = 19;
7
8/// https://www.sqlite.org/rescode.html#error
9pub const SQLITE_ERROR: i32 = 1;
10
11/// https://www.sqlite.org/rescode.html#ok
12pub const SQLITE_OKAY: i32 = 0;
13
14/// https://www.sqlite.org/rescode.html#internal
15pub const SQLITE_INTERNAL: i32 = 2;