Lines Matching refs:sqlite
52 void *sqlite; /* SQLite handle */ member
812 if (h->sqlite) { in doclose()
815 sqlite3_close((sqlite3 *) h->sqlite); in doclose()
817 sqlite_close((sqlite *) h->sqlite); in doclose()
821 sqlite_close((sqlite *) h->sqlite); in doclose()
824 sqlite3_close((sqlite3 *) h->sqlite); in doclose()
827 h->sqlite = 0; in doclose()
897 if (h && h->sqlite) { in Java_SQLite_Database__1busy_1timeout()
900 sqlite3_busy_timeout((sqlite3 * ) h->sqlite, ms); in Java_SQLite_Database__1busy_1timeout()
902 sqlite_busy_timeout((sqlite *) h->sqlite, ms); in Java_SQLite_Database__1busy_1timeout()
906 sqlite_busy_timeout((sqlite *) h->sqlite, ms); in Java_SQLite_Database__1busy_1timeout()
909 sqlite3_busy_timeout((sqlite3 * ) h->sqlite, ms); in Java_SQLite_Database__1busy_1timeout()
937 if (h && h->sqlite) { in Java_SQLite_Database_dbversion()
960 if (h && h->sqlite) { in Java_SQLite_Database__1last_1insert_1rowid()
963 return (jlong) sqlite3_last_insert_rowid((sqlite3 *) h->sqlite); in Java_SQLite_Database__1last_1insert_1rowid()
965 return (jlong) sqlite_last_insert_rowid((sqlite *) h->sqlite); in Java_SQLite_Database__1last_1insert_1rowid()
969 return (jlong) sqlite_last_insert_rowid((sqlite *) h->sqlite); in Java_SQLite_Database__1last_1insert_1rowid()
972 return (jlong) sqlite3_last_insert_rowid((sqlite3 *) h->sqlite); in Java_SQLite_Database__1last_1insert_1rowid()
985 if (h && h->sqlite) { in Java_SQLite_Database__1changes()
988 return (jlong) sqlite3_changes((sqlite3 *) h->sqlite); in Java_SQLite_Database__1changes()
990 return (jlong) sqlite_changes((sqlite *) h->sqlite); in Java_SQLite_Database__1changes()
994 return (jlong) sqlite_changes((sqlite *) h->sqlite); in Java_SQLite_Database__1changes()
997 return (jlong) sqlite3_changes((sqlite3 *) h->sqlite); in Java_SQLite_Database__1changes()
1032 if (h && h->sqlite) { in Java_SQLite_Database__1interrupt()
1035 sqlite3_interrupt((sqlite3 *) h->sqlite); in Java_SQLite_Database__1interrupt()
1037 sqlite_interrupt((sqlite *) h->sqlite); in Java_SQLite_Database__1interrupt()
1041 sqlite_interrupt((sqlite *) h->sqlite); in Java_SQLite_Database__1interrupt()
1044 sqlite3_interrupt((sqlite3 *) h->sqlite); in Java_SQLite_Database__1interrupt()
1070 if (h->sqlite) { in Java_SQLite_Database__1open4()
1073 sqlite3_close((sqlite3 *) h->sqlite); in Java_SQLite_Database__1open4()
1075 sqlite_close((sqlite *) h->sqlite); in Java_SQLite_Database__1open4()
1080 sqlite_close((sqlite *) h->sqlite); in Java_SQLite_Database__1open4()
1083 sqlite3_close((sqlite3 *) h->sqlite); in Java_SQLite_Database__1open4()
1086 h->sqlite = 0; in Java_SQLite_Database__1open4()
1094 h->sqlite = 0; in Java_SQLite_Database__1open4()
1156 int rc = sqlite3_open_v2(filename.result, (sqlite3 **) &h->sqlite, in Java_SQLite_Database__1open4()
1159 int rc = sqlite3_open(filename.result, (sqlite3 **) &h->sqlite); in Java_SQLite_Database__1open4()
1164 } else if (h->sqlite) { in Java_SQLite_Database__1open4()
1165 sqlite3_close((sqlite3 *) h->sqlite); in Java_SQLite_Database__1open4()
1166 h->sqlite = 0; in Java_SQLite_Database__1open4()
1169 h->sqlite = (void *) sqlite_open(filename.result, in Java_SQLite_Database__1open4()
1175 h->sqlite = (void *) sqlite_open(filename.result, (int) mode, &err); in Java_SQLite_Database__1open4()
1179 if (sqlite3_open_v2(filename.result, (sqlite3 **) &h->sqlite, in Java_SQLite_Database__1open4()
1182 if (sqlite3_open(filename.result, (sqlite3 **) &h->sqlite) != SQLITE_OK) in Java_SQLite_Database__1open4()
1185 if (h->sqlite) { in Java_SQLite_Database__1open4()
1186 sqlite3_close((sqlite3 *) h->sqlite); in Java_SQLite_Database__1open4()
1187 h->sqlite = 0; in Java_SQLite_Database__1open4()
1204 if (h->sqlite) { in Java_SQLite_Database__1open4()
1207 sqlite3_close((sqlite3 *) h->sqlite); in Java_SQLite_Database__1open4()
1210 sqlite_close((sqlite *) h->sqlite); in Java_SQLite_Database__1open4()
1214 sqlite_close((sqlite *) h->sqlite); in Java_SQLite_Database__1open4()
1217 sqlite3_close((sqlite3 *) h->sqlite); in Java_SQLite_Database__1open4()
1221 h->sqlite = 0; in Java_SQLite_Database__1open4()
1224 if (h->sqlite) { in Java_SQLite_Database__1open4()
1239 sqlite3_enable_load_extension((sqlite3 *) h->sqlite, 1); in Java_SQLite_Database__1open4()
1251 sqlite3_enable_load_extension((sqlite3 *) h->sqlite, 1); in Java_SQLite_Database__1open4()
1283 if (h && h->sqlite) { in Java_SQLite_Database__1open_1aux_1file()
1296 ret = sqlite_open_aux_file((sqlite *) h->sqlite, in Java_SQLite_Database__1open_1aux_1file()
1326 if (h && h->sqlite) { in Java_SQLite_Database__1busy_1handler()
1331 sqlite3_busy_handler((sqlite3 *) h->sqlite, busyhandler3, h); in Java_SQLite_Database__1busy_1handler()
1333 sqlite_busy_handler((sqlite *) h->sqlite, busyhandler, h); in Java_SQLite_Database__1busy_1handler()
1337 sqlite_busy_handler((sqlite *) h->sqlite, busyhandler, h); in Java_SQLite_Database__1busy_1handler()
1340 sqlite3_busy_handler((sqlite3 *) h->sqlite, busyhandler3, h); in Java_SQLite_Database__1busy_1handler()
1360 if (h->sqlite) { in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2()
1378 rc = sqlite3_exec((sqlite3 *) h->sqlite, sqlstr.result, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2()
1382 rc = sqlite_exec((sqlite *) h->sqlite, sqlstr.result, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2()
1388 rc = sqlite_exec((sqlite *) h->sqlite, sqlstr.result, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2()
1393 rc = sqlite3_exec((sqlite3 *) h->sqlite, sqlstr.result, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2()
1439 if (h->sqlite) { in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1561 rc = sqlite3_exec((sqlite3 *) h->sqlite, s, callback, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1570 rc = sqlite_exec_vprintf((sqlite *) h->sqlite, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1574 rc = sqlite_exec_printf((sqlite *) h->sqlite, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1599 rc = sqlite_exec_vprintf((sqlite *) h->sqlite, sqlstr.result, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1602 rc = sqlite_exec_printf((sqlite *) h->sqlite, sqlstr.result, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1647 rc = sqlite3_exec((sqlite3 *) h->sqlite, s, callback, in Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2()
1861 if (h && h->sqlite) { in mkfunc_common()
1900 ret = sqlite3_create_function((sqlite3 *) h->sqlite, in mkfunc_common()
1910 ret = sqlite_create_aggregate((sqlite *) h->sqlite, in mkfunc_common()
1915 ret = sqlite_create_function((sqlite *) h->sqlite, in mkfunc_common()
1924 ret = sqlite_create_aggregate((sqlite *) h->sqlite, namestr.result, in mkfunc_common()
1928 ret = sqlite_create_function((sqlite *) h->sqlite, namestr.result, in mkfunc_common()
1934 ret = sqlite3_create_function((sqlite3 *) h->sqlite, in mkfunc_common()
1972 if (h && h->sqlite) { in Java_SQLite_Database__1function_1type()
1991 ret = sqlite_function_type(h->sqlite, namestr.result, (int) type); in Java_SQLite_Database__1function_1type()
2262 if (h && h->sqlite) { in Java_SQLite_Database__1errmsg()
2269 sqlite3_errmsg((sqlite3 *) h->sqlite)); in Java_SQLite_Database__1errmsg()
2368 if (h && h->sqlite) { in Java_SQLite_Database__1set_1authorizer()
2375 sqlite3_set_authorizer((sqlite3 *) h->sqlite, in Java_SQLite_Database__1set_1authorizer()
2378 sqlite_set_authorizer((sqlite *) h->sqlite, in Java_SQLite_Database__1set_1authorizer()
2383 sqlite_set_authorizer((sqlite *) h->sqlite, h->ai ? doauth : 0, h); in Java_SQLite_Database__1set_1authorizer()
2386 sqlite3_set_authorizer((sqlite3 *) h->sqlite, h->ai ? doauth : 0, h); in Java_SQLite_Database__1set_1authorizer()
2433 if (h && h->sqlite) { in Java_SQLite_Database__1trace()
2438 sqlite3_trace((sqlite3 *) h->sqlite, h->tr ? dotrace : 0, h); in Java_SQLite_Database__1trace()
2441 sqlite_trace((sqlite *) h->sqlite, h->tr ? dotrace : 0, h); in Java_SQLite_Database__1trace()
2447 sqlite_trace((sqlite *) h->sqlite, h->tr ? dotrace : 0, h); in Java_SQLite_Database__1trace()
2451 sqlite3_trace((sqlite3 *) h->sqlite, h->tr ? dotrace : 0, h); in Java_SQLite_Database__1trace()
2919 if (v && v->h && v->h->sqlite) { in Java_SQLite_Vm_compile()
2927 ret = sqlite3_prepare_v2((sqlite3 *) v->h->sqlite, v->tail, -1, in Java_SQLite_Vm_compile()
2930 ret = sqlite3_prepare((sqlite3 *) v->h->sqlite, v->tail, -1, in Java_SQLite_Vm_compile()
2938 err = (char *) sqlite3_errmsg((sqlite3 *) v->h->sqlite); in Java_SQLite_Vm_compile()
2941 ret = sqlite_compile((sqlite *) v->h->sqlite, v->tail, in Java_SQLite_Vm_compile()
2953 ret = sqlite_compile((sqlite *) v->h->sqlite, v->tail, in Java_SQLite_Vm_compile()
2965 ret = sqlite3_prepare_v2((sqlite3 *) v->h->sqlite, in Java_SQLite_Vm_compile()
2968 ret = sqlite3_prepare((sqlite3 *) v->h->sqlite, in Java_SQLite_Vm_compile()
2976 err = (char *) sqlite3_errmsg((sqlite3 *) v->h->sqlite); in Java_SQLite_Vm_compile()
3052 ret = sqlite3_prepare_v2((sqlite3 *) h->sqlite, tr.result, -1, in Java_SQLite_Database_vm_1compile()
3055 ret = sqlite3_prepare((sqlite3 *) h->sqlite, tr.result, -1, in Java_SQLite_Database_vm_1compile()
3063 err = (char *) sqlite3_errmsg((sqlite3 *) h->sqlite); in Java_SQLite_Database_vm_1compile()
3066 ret = sqlite_compile((sqlite *) h->sqlite, tr.result, &tail, in Java_SQLite_Database_vm_1compile()
3077 ret = sqlite_compile((sqlite *) h->sqlite, tr.result, &tail, in Java_SQLite_Database_vm_1compile()
3089 ret = sqlite3_prepare_v2((sqlite3 *) h->sqlite, tr.result, -1, in Java_SQLite_Database_vm_1compile()
3092 ret = sqlite3_prepare((sqlite3 *) h->sqlite, tr.result, -1, in Java_SQLite_Database_vm_1compile()
3100 err = (char *) sqlite3_errmsg((sqlite3 *) h->sqlite); in Java_SQLite_Database_vm_1compile()
3153 v->hh.sqlite = 0; in Java_SQLite_Database_vm_1compile()
3191 if (!h || !h->sqlite) { in Java_SQLite_Database_vm_1compile_1args()
3306 rc = sqlite3_prepare_v2((sqlite3 *) h->sqlite, s, -1, in Java_SQLite_Database_vm_1compile_1args()
3309 rc = sqlite3_prepare((sqlite3 *) h->sqlite, s, -1, in Java_SQLite_Database_vm_1compile_1args()
3359 v->hh.sqlite = 0; in Java_SQLite_Database_vm_1compile_1args()
3403 if (h && h->sqlite) { in Java_SQLite_Database__1progress_1handler()
3411 sqlite3_progress_handler((sqlite3 *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3414 sqlite3_progress_handler((sqlite3 *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3420 sqlite_progress_handler((sqlite *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3423 sqlite_progress_handler((sqlite *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3431 sqlite_progress_handler((sqlite *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3434 sqlite_progress_handler((sqlite *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3441 sqlite3_progress_handler((sqlite3 *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3444 sqlite3_progress_handler((sqlite3 *) h->sqlite, in Java_SQLite_Database__1progress_1handler()
3491 if (v && v->h && v->h->sqlite) { in Java_SQLite_Stmt_prepare()
3497 ret = sqlite3_prepare16_v2((sqlite3 *) v->h->sqlite, in Java_SQLite_Stmt_prepare()
3501 ret = sqlite3_prepare16((sqlite3 *) v->h->sqlite, in Java_SQLite_Stmt_prepare()
3512 const char *err = sqlite3_errmsg(v->h->sqlite); in Java_SQLite_Stmt_prepare()
3573 ret = sqlite3_prepare16_v2((sqlite3 *) h->sqlite, sql16, len16, in Java_SQLite_Database_stmt_1prepare()
3576 ret = sqlite3_prepare16((sqlite3 *) h->sqlite, sql16, len16, in Java_SQLite_Database_stmt_1prepare()
3586 const char *err = sqlite3_errmsg(h->sqlite); in Java_SQLite_Database_stmt_1prepare()
3620 v->hh.sqlite = 0; in Java_SQLite_Database_stmt_1prepare()
3651 const char *err = sqlite3_errmsg(v->h->sqlite); in Java_SQLite_Stmt_step()
3677 const char *err = sqlite3_errmsg(v->h->sqlite); in Java_SQLite_Stmt_close()
4375 if (h && h->sqlite) { in Java_SQLite_Database__1open_1blob()
4397 ret = sqlite3_blob_open(h->sqlite, in Java_SQLite_Database__1open_1blob()
4404 const char *err = sqlite3_errmsg(h->sqlite); in Java_SQLite_Database__1open_1blob()
4549 if (h && h->sqlite) { in Java_SQLite_Database__1key()
4558 sqlite3_key((sqlite3 *) h->sqlite, data, len); in Java_SQLite_Database__1key()
4594 if (h && h->sqlite) { in Java_SQLite_Database__1rekey()
4603 sqlite3_rekey((sqlite3 *) h->sqlite, data, len); in Java_SQLite_Database__1rekey()
4666 if (!hsrc->sqlite) { in Java_SQLite_Database__1backup()
4670 if (!hdest->sqlite) { in Java_SQLite_Database__1backup()
4687 bkup = sqlite3_backup_init((sqlite3 *) hdest->sqlite, dbnd.result, in Java_SQLite_Database__1backup()
4688 (sqlite3 *) hsrc->sqlite, dbns.result); in Java_SQLite_Database__1backup()
4692 const char *err = sqlite3_errmsg((sqlite3 *) hdest->sqlite); in Java_SQLite_Database__1backup()
4694 seterr(env, src, sqlite3_errcode((sqlite3 *) hdest->sqlite)); in Java_SQLite_Database__1backup()
4744 err = (char *) sqlite3_errmsg((sqlite3 *) bk->h->sqlite); in Java_SQLite_Backup__1finalize()
4872 if (h && h->sqlite) { in Java_SQLite_Database__1profile()
4877 sqlite3_profile((sqlite3 *) h->sqlite, h->pr ? doprofile : 0, h); in Java_SQLite_Database__1profile()
4881 sqlite3_profile((sqlite3 *) h->sqlite, h->pr ? doprofile : 0, h); in Java_SQLite_Database__1profile()
4918 if (h && h->sqlite) { in Java_SQLite_Database__1db_1status()
4921 ret = sqlite3_db_status((sqlite3 *) h->sqlite, op, &data[0], in Java_SQLite_Database__1db_1status()
4926 ret = sqlite3_db_status((sqlite3 *) h->sqlite, op, &data[0], in Java_SQLite_Database__1db_1status()