Should be called every time a thread exits, so that if the thread has * an SQLite thread-local handle, it gets closed. */
| 625 | /* Should be called every time a thread exits, so that if the thread has |
| 626 | * an SQLite thread-local handle, it gets closed. */ |
| 627 | void dbClose(void) { |
| 628 | if (DbHandle) sqlite3_close(DbHandle); |
| 629 | DbHandle = NULL; |
| 630 | } |
| 631 | |
| 632 | /* ============================================================================= |
| 633 | * Bot requests handling |