squire_sqlite3_sys/bindings/default/version.rs
1use core::ffi::{c_char, c_int};
2
3unsafe extern "C" {
4 /// The [version][] of the SQLite library, as a string.
5 ///
6 /// [version]: https://sqlite.org/c3ref/libversion.html
7 pub fn sqlite3_libversion() -> *const c_char;
8
9 /// The [version][] of the SQLite library, as a comparable integer.
10 ///
11 /// [version]: https://sqlite.org/c3ref/libversion.html
12 pub fn sqlite3_libversion_number() -> c_int;
13
14 /// The full [build version][] of the SQLite library.
15 ///
16 /// [version]: https://sqlite.org/c3ref/libversion.html
17 pub fn sqlite3_sourceid() -> *const c_char;
18
19 /// Check if a SQLite [compile-time option][] was used.
20 ///
21 /// [compile-time option]: https://sqlite.org/c3ref/compileoption_get.html
22 pub fn sqlite3_compileoption_used(zOptName: *const c_char) -> c_int;
23
24 /// Enumerate SQLite [compile-time options][] was used.
25 ///
26 /// [compile-time options]: https://sqlite.org/c3ref/compileoption_get.html
27 pub fn sqlite3_compileoption_get(n: c_int) -> *const c_char;
28
29 /// Check the compiled [thread-safety][] mode of SQLite.
30 ///
31 /// [thread-safety]: https://sqlite.org/c3ref/threadsafe.html
32 pub fn sqlite3_threadsafe() -> c_int;
33}