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