1 #![allow(non_snake_case, non_camel_case_types)]
2 
3 pub use self::error::*;
4 
5 use std::default::Default;
6 use std::mem;
7 
8 mod error;
9 
SQLITE_STATIC() -> sqlite3_destructor_type10 pub fn SQLITE_STATIC() -> sqlite3_destructor_type {
11     None
12 }
13 
SQLITE_TRANSIENT() -> sqlite3_destructor_type14 pub fn SQLITE_TRANSIENT() -> sqlite3_destructor_type {
15     Some(unsafe { mem::transmute(-1isize) })
16 }
17 
18 /// Run-Time Limit Categories
19 #[repr(i32)]
20 #[non_exhaustive]
21 #[allow(clippy::upper_case_acronyms)]
22 pub enum Limit {
23     /// The maximum size of any string or BLOB or table row, in bytes.
24     SQLITE_LIMIT_LENGTH = SQLITE_LIMIT_LENGTH,
25     /// The maximum length of an SQL statement, in bytes.
26     SQLITE_LIMIT_SQL_LENGTH = SQLITE_LIMIT_SQL_LENGTH,
27     /// The maximum number of columns in a table definition or in the result set
28     /// of a SELECT or the maximum number of columns in an index or in an
29     /// ORDER BY or GROUP BY clause.
30     SQLITE_LIMIT_COLUMN = SQLITE_LIMIT_COLUMN,
31     /// The maximum depth of the parse tree on any expression.
32     SQLITE_LIMIT_EXPR_DEPTH = SQLITE_LIMIT_EXPR_DEPTH,
33     /// The maximum number of terms in a compound SELECT statement.
34     SQLITE_LIMIT_COMPOUND_SELECT = SQLITE_LIMIT_COMPOUND_SELECT,
35     /// The maximum number of instructions in a virtual machine program used to
36     /// implement an SQL statement.
37     SQLITE_LIMIT_VDBE_OP = SQLITE_LIMIT_VDBE_OP,
38     /// The maximum number of arguments on a function.
39     SQLITE_LIMIT_FUNCTION_ARG = SQLITE_LIMIT_FUNCTION_ARG,
40     /// The maximum number of attached databases.
41     SQLITE_LIMIT_ATTACHED = SQLITE_LIMIT_ATTACHED,
42     /// The maximum length of the pattern argument to the LIKE or GLOB
43     /// operators.
44     SQLITE_LIMIT_LIKE_PATTERN_LENGTH = SQLITE_LIMIT_LIKE_PATTERN_LENGTH,
45     /// The maximum index number of any parameter in an SQL statement.
46     SQLITE_LIMIT_VARIABLE_NUMBER = SQLITE_LIMIT_VARIABLE_NUMBER,
47     /// The maximum depth of recursion for triggers.
48     SQLITE_LIMIT_TRIGGER_DEPTH = 10,
49     /// The maximum number of auxiliary worker threads that a single prepared
50     /// statement may start.
51     SQLITE_LIMIT_WORKER_THREADS = 11,
52 }
53 
54 #[allow(clippy::all)]
55 mod bindings {
56     include!(concat!(env!("OUT_DIR"), "/bindgen.rs"));
57 }
58 pub use bindings::*;
59 
60 pub type sqlite3_index_constraint = sqlite3_index_info_sqlite3_index_constraint;
61 pub type sqlite3_index_constraint_usage = sqlite3_index_info_sqlite3_index_constraint_usage;
62 
63 impl Default for sqlite3_vtab {
default() -> Self64     fn default() -> Self {
65         unsafe { mem::zeroed() }
66     }
67 }
68 
69 impl Default for sqlite3_vtab_cursor {
default() -> Self70     fn default() -> Self {
71         unsafe { mem::zeroed() }
72     }
73 }
74