1 /* DO NOT EDIT */ 2 3 package SQLite; 4 5 /** 6 * Container for SQLite constants. 7 * 8 * Usually generated by "native/mkconst.c". For Android, I pasted in the output of this one-liner: 9 * 10 * perl -ne '$_ =~ s/#define\s+(SQLITE\S+)\s+([0-9x]+)/ public static final int $1 = $2;/ && print $_;' external/sqlite/dist/sqlite3.h 11 */ 12 public final class Constants { 13 // Copied from VERSION. 14 public static final int drv_minor = 20100131; 15 // Generated by the one-liner above. 16 public static final int SQLITE_VERSION_NUMBER = 3006022; 17 public static final int SQLITE_OK = 0; /* Successful result */ 18 public static final int SQLITE_ERROR = 1; /* SQL error or missing database */ 19 public static final int SQLITE_INTERNAL = 2; /* Internal logic error in SQLite */ 20 public static final int SQLITE_PERM = 3; /* Access permission denied */ 21 public static final int SQLITE_ABORT = 4; /* Callback routine requested an abort */ 22 public static final int SQLITE_BUSY = 5; /* The database file is locked */ 23 public static final int SQLITE_LOCKED = 6; /* A table in the database is locked */ 24 public static final int SQLITE_NOMEM = 7; /* A malloc() failed */ 25 public static final int SQLITE_READONLY = 8; /* Attempt to write a readonly database */ 26 public static final int SQLITE_INTERRUPT = 9; /* Operation terminated by sqlite3_interrupt()*/ 27 public static final int SQLITE_IOERR = 10; /* Some kind of disk I/O error occurred */ 28 public static final int SQLITE_CORRUPT = 11; /* The database disk image is malformed */ 29 public static final int SQLITE_NOTFOUND = 12; /* NOT USED. Table or record not found */ 30 public static final int SQLITE_FULL = 13; /* Insertion failed because database is full */ 31 public static final int SQLITE_CANTOPEN = 14; /* Unable to open the database file */ 32 public static final int SQLITE_PROTOCOL = 15; /* NOT USED. Database lock protocol error */ 33 public static final int SQLITE_EMPTY = 16; /* Database is empty */ 34 public static final int SQLITE_SCHEMA = 17; /* The database schema changed */ 35 public static final int SQLITE_TOOBIG = 18; /* String or BLOB exceeds size limit */ 36 public static final int SQLITE_CONSTRAINT = 19; /* Abort due to constraint violation */ 37 public static final int SQLITE_MISMATCH = 20; /* Data type mismatch */ 38 public static final int SQLITE_MISUSE = 21; /* Library used incorrectly */ 39 public static final int SQLITE_NOLFS = 22; /* Uses OS features not supported on host */ 40 public static final int SQLITE_AUTH = 23; /* Authorization denied */ 41 public static final int SQLITE_FORMAT = 24; /* Auxiliary database format error */ 42 public static final int SQLITE_RANGE = 25; /* 2nd parameter to sqlite3_bind out of range */ 43 public static final int SQLITE_NOTADB = 26; /* File opened that is not a database file */ 44 public static final int SQLITE_ROW = 100; /* sqlite3_step() has another row ready */ 45 public static final int SQLITE_DONE = 101; /* sqlite3_step() has finished executing */ 46 public static final int SQLITE_OPEN_READONLY = 0x00000001; /* Ok for sqlite3_open_v2() */ 47 public static final int SQLITE_OPEN_READWRITE = 0x00000002; /* Ok for sqlite3_open_v2() */ 48 public static final int SQLITE_OPEN_CREATE = 0x00000004; /* Ok for sqlite3_open_v2() */ 49 public static final int SQLITE_OPEN_DELETEONCLOSE = 0x00000008; /* VFS only */ 50 public static final int SQLITE_OPEN_EXCLUSIVE = 0x00000010; /* VFS only */ 51 public static final int SQLITE_OPEN_MAIN_DB = 0x00000100; /* VFS only */ 52 public static final int SQLITE_OPEN_TEMP_DB = 0x00000200; /* VFS only */ 53 public static final int SQLITE_OPEN_TRANSIENT_DB = 0x00000400; /* VFS only */ 54 public static final int SQLITE_OPEN_MAIN_JOURNAL = 0x00000800; /* VFS only */ 55 public static final int SQLITE_OPEN_TEMP_JOURNAL = 0x00001000; /* VFS only */ 56 public static final int SQLITE_OPEN_SUBJOURNAL = 0x00002000; /* VFS only */ 57 public static final int SQLITE_OPEN_MASTER_JOURNAL = 0x00004000; /* VFS only */ 58 public static final int SQLITE_OPEN_NOMUTEX = 0x00008000; /* Ok for sqlite3_open_v2() */ 59 public static final int SQLITE_OPEN_FULLMUTEX = 0x00010000; /* Ok for sqlite3_open_v2() */ 60 public static final int SQLITE_OPEN_SHAREDCACHE = 0x00020000; /* Ok for sqlite3_open_v2() */ 61 public static final int SQLITE_OPEN_PRIVATECACHE = 0x00040000; /* Ok for sqlite3_open_v2() */ 62 public static final int SQLITE_IOCAP_ATOMIC = 0x00000001; 63 public static final int SQLITE_IOCAP_ATOMIC512 = 0x00000002; 64 public static final int SQLITE_IOCAP_ATOMIC1K = 0x00000004; 65 public static final int SQLITE_IOCAP_ATOMIC2K = 0x00000008; 66 public static final int SQLITE_IOCAP_ATOMIC4K = 0x00000010; 67 public static final int SQLITE_IOCAP_ATOMIC8K = 0x00000020; 68 public static final int SQLITE_IOCAP_ATOMIC16K = 0x00000040; 69 public static final int SQLITE_IOCAP_ATOMIC32K = 0x00000080; 70 public static final int SQLITE_IOCAP_ATOMIC64K = 0x00000100; 71 public static final int SQLITE_IOCAP_SAFE_APPEND = 0x00000200; 72 public static final int SQLITE_IOCAP_SEQUENTIAL = 0x00000400; 73 public static final int SQLITE_LOCK_NONE = 0; 74 public static final int SQLITE_LOCK_SHARED = 1; 75 public static final int SQLITE_LOCK_RESERVED = 2; 76 public static final int SQLITE_LOCK_PENDING = 3; 77 public static final int SQLITE_LOCK_EXCLUSIVE = 4; 78 public static final int SQLITE_SYNC_NORMAL = 0x00002; 79 public static final int SQLITE_SYNC_FULL = 0x00003; 80 public static final int SQLITE_SYNC_DATAONLY = 0x00010; 81 public static final int SQLITE_FCNTL_LOCKSTATE = 1; 82 public static final int SQLITE_GET_LOCKPROXYFILE = 2; 83 public static final int SQLITE_SET_LOCKPROXYFILE = 3; 84 public static final int SQLITE_LAST_ERRNO = 4; 85 public static final int SQLITE_ACCESS_EXISTS = 0; 86 public static final int SQLITE_ACCESS_READWRITE = 1; 87 public static final int SQLITE_ACCESS_READ = 2; 88 public static final int SQLITE_CONFIG_SINGLETHREAD = 1; /* nil */ 89 public static final int SQLITE_CONFIG_MULTITHREAD = 2; /* nil */ 90 public static final int SQLITE_CONFIG_SERIALIZED = 3; /* nil */ 91 public static final int SQLITE_CONFIG_MALLOC = 4; /* sqlite3_mem_methods* */ 92 public static final int SQLITE_CONFIG_GETMALLOC = 5; /* sqlite3_mem_methods* */ 93 public static final int SQLITE_CONFIG_SCRATCH = 6; /* void*, int sz, int N */ 94 public static final int SQLITE_CONFIG_PAGECACHE = 7; /* void*, int sz, int N */ 95 public static final int SQLITE_CONFIG_HEAP = 8; /* void*, int nByte, int min */ 96 public static final int SQLITE_CONFIG_MEMSTATUS = 9; /* boolean */ 97 public static final int SQLITE_CONFIG_MUTEX = 10; /* sqlite3_mutex_methods* */ 98 public static final int SQLITE_CONFIG_GETMUTEX = 11; /* sqlite3_mutex_methods* */ 99 public static final int SQLITE_CONFIG_LOOKASIDE = 13; /* int int */ 100 public static final int SQLITE_CONFIG_PCACHE = 14; /* sqlite3_pcache_methods* */ 101 public static final int SQLITE_CONFIG_GETPCACHE = 15; /* sqlite3_pcache_methods* */ 102 public static final int SQLITE_DBCONFIG_LOOKASIDE = 1001; /* void* int int */ 103 public static final int SQLITE_DENY = 1; /* Abort the SQL statement with an error */ 104 public static final int SQLITE_IGNORE = 2; /* Don't allow access, but don't generate an error */ 105 public static final int SQLITE_CREATE_INDEX = 1; /* Index Name Table Name */ 106 public static final int SQLITE_CREATE_TABLE = 2; /* Table Name NULL */ 107 public static final int SQLITE_CREATE_TEMP_INDEX = 3; /* Index Name Table Name */ 108 public static final int SQLITE_CREATE_TEMP_TABLE = 4; /* Table Name NULL */ 109 public static final int SQLITE_CREATE_TEMP_TRIGGER = 5; /* Trigger Name Table Name */ 110 public static final int SQLITE_CREATE_TEMP_VIEW = 6; /* View Name NULL */ 111 public static final int SQLITE_CREATE_TRIGGER = 7; /* Trigger Name Table Name */ 112 public static final int SQLITE_CREATE_VIEW = 8; /* View Name NULL */ 113 public static final int SQLITE_DELETE = 9; /* Table Name NULL */ 114 public static final int SQLITE_DROP_INDEX = 10; /* Index Name Table Name */ 115 public static final int SQLITE_DROP_TABLE = 11; /* Table Name NULL */ 116 public static final int SQLITE_DROP_TEMP_INDEX = 12; /* Index Name Table Name */ 117 public static final int SQLITE_DROP_TEMP_TABLE = 13; /* Table Name NULL */ 118 public static final int SQLITE_DROP_TEMP_TRIGGER = 14; /* Trigger Name Table Name */ 119 public static final int SQLITE_DROP_TEMP_VIEW = 15; /* View Name NULL */ 120 public static final int SQLITE_DROP_TRIGGER = 16; /* Trigger Name Table Name */ 121 public static final int SQLITE_DROP_VIEW = 17; /* View Name NULL */ 122 public static final int SQLITE_INSERT = 18; /* Table Name NULL */ 123 public static final int SQLITE_PRAGMA = 19; /* Pragma Name 1st arg or NULL */ 124 public static final int SQLITE_READ = 20; /* Table Name Column Name */ 125 public static final int SQLITE_SELECT = 21; /* NULL NULL */ 126 public static final int SQLITE_TRANSACTION = 22; /* Operation NULL */ 127 public static final int SQLITE_UPDATE = 23; /* Table Name Column Name */ 128 public static final int SQLITE_ATTACH = 24; /* Filename NULL */ 129 public static final int SQLITE_DETACH = 25; /* Database Name NULL */ 130 public static final int SQLITE_ALTER_TABLE = 26; /* Database Name Table Name */ 131 public static final int SQLITE_REINDEX = 27; /* Index Name NULL */ 132 public static final int SQLITE_ANALYZE = 28; /* Table Name NULL */ 133 public static final int SQLITE_CREATE_VTABLE = 29; /* Table Name Module Name */ 134 public static final int SQLITE_DROP_VTABLE = 30; /* Table Name Module Name */ 135 public static final int SQLITE_FUNCTION = 31; /* NULL Function Name */ 136 public static final int SQLITE_SAVEPOINT = 32; /* Operation Savepoint Name */ 137 public static final int SQLITE_COPY = 0; /* No longer used */ 138 public static final int SQLITE_LIMIT_LENGTH = 0; 139 public static final int SQLITE_LIMIT_SQL_LENGTH = 1; 140 public static final int SQLITE_LIMIT_COLUMN = 2; 141 public static final int SQLITE_LIMIT_EXPR_DEPTH = 3; 142 public static final int SQLITE_LIMIT_COMPOUND_SELECT = 4; 143 public static final int SQLITE_LIMIT_VDBE_OP = 5; 144 public static final int SQLITE_LIMIT_FUNCTION_ARG = 6; 145 public static final int SQLITE_LIMIT_ATTACHED = 7; 146 public static final int SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8; 147 public static final int SQLITE_LIMIT_VARIABLE_NUMBER = 9; 148 public static final int SQLITE_LIMIT_TRIGGER_DEPTH = 10; 149 public static final int SQLITE_INTEGER = 1; 150 public static final int SQLITE_FLOAT = 2; 151 public static final int SQLITE_BLOB = 4; 152 public static final int SQLITE_NULL = 5; 153 public static final int SQLITE3_TEXT = 3; 154 public static final int SQLITE_UTF8 = 1; 155 public static final int SQLITE_UTF16LE = 2; 156 public static final int SQLITE_UTF16BE = 3; 157 public static final int SQLITE_UTF16 = 4; /* Use native byte order */ 158 public static final int SQLITE_ANY = 5; /* sqlite3_create_function only */ 159 public static final int SQLITE_UTF16_ALIGNED = 8; /* sqlite3_create_collation only */ 160 public static final int SQLITE_INDEX_CONSTRAINT_EQ = 2; 161 public static final int SQLITE_INDEX_CONSTRAINT_GT = 4; 162 public static final int SQLITE_INDEX_CONSTRAINT_LE = 8; 163 public static final int SQLITE_INDEX_CONSTRAINT_LT = 16; 164 public static final int SQLITE_INDEX_CONSTRAINT_GE = 32; 165 public static final int SQLITE_INDEX_CONSTRAINT_MATCH = 64; 166 public static final int SQLITE_MUTEX_FAST = 0; 167 public static final int SQLITE_MUTEX_RECURSIVE = 1; 168 public static final int SQLITE_MUTEX_STATIC_MASTER = 2; 169 public static final int SQLITE_MUTEX_STATIC_MEM = 3; /* sqlite3_malloc() */ 170 public static final int SQLITE_MUTEX_STATIC_MEM2 = 4; /* NOT USED */ 171 public static final int SQLITE_MUTEX_STATIC_OPEN = 4; /* sqlite3BtreeOpen() */ 172 public static final int SQLITE_MUTEX_STATIC_PRNG = 5; /* sqlite3_random() */ 173 public static final int SQLITE_MUTEX_STATIC_LRU = 6; /* lru page list */ 174 public static final int SQLITE_MUTEX_STATIC_LRU2 = 7; /* lru page list */ 175 public static final int SQLITE_TESTCTRL_FIRST = 5; 176 public static final int SQLITE_TESTCTRL_PRNG_SAVE = 5; 177 public static final int SQLITE_TESTCTRL_PRNG_RESTORE = 6; 178 public static final int SQLITE_TESTCTRL_PRNG_RESET = 7; 179 public static final int SQLITE_TESTCTRL_BITVEC_TEST = 8; 180 public static final int SQLITE_TESTCTRL_FAULT_INSTALL = 9; 181 public static final int SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10; 182 public static final int SQLITE_TESTCTRL_PENDING_BYTE = 11; 183 public static final int SQLITE_TESTCTRL_ASSERT = 12; 184 public static final int SQLITE_TESTCTRL_ALWAYS = 13; 185 public static final int SQLITE_TESTCTRL_RESERVE = 14; 186 public static final int SQLITE_TESTCTRL_OPTIMIZATIONS = 15; 187 public static final int SQLITE_TESTCTRL_ISKEYWORD = 16; 188 public static final int SQLITE_TESTCTRL_LAST = 16; 189 public static final int SQLITE_STATUS_MEMORY_USED = 0; 190 public static final int SQLITE_STATUS_PAGECACHE_USED = 1; 191 public static final int SQLITE_STATUS_PAGECACHE_OVERFLOW = 2; 192 public static final int SQLITE_STATUS_SCRATCH_USED = 3; 193 public static final int SQLITE_STATUS_SCRATCH_OVERFLOW = 4; 194 public static final int SQLITE_STATUS_MALLOC_SIZE = 5; 195 public static final int SQLITE_STATUS_PARSER_STACK = 6; 196 public static final int SQLITE_STATUS_PAGECACHE_SIZE = 7; 197 public static final int SQLITE_STATUS_SCRATCH_SIZE = 8; 198 public static final int SQLITE_DBSTATUS_LOOKASIDE_USED = 0; 199 public static final int SQLITE_STMTSTATUS_FULLSCAN_STEP = 1; 200 public static final int SQLITE_STMTSTATUS_SORT = 2; 201 } 202