|
ThinSQLite++
A thin, safe and convenient modern C++ wrapper for the SQLite API.
|
Classes | |
| class | backup |
| Online backup object. More... | |
| class | blob |
| Access blob as a byte stream. More... | |
| class | context |
| SQL Function Context Object. More... | |
| class | database |
| Database Connection. More... | |
| class | error |
| Carries information about SQLite error. More... | |
| class | exception |
| Exception used to report any SQLite errors. More... | |
| struct | status_value |
| Return type for status(). More... | |
| class | keywords |
| STL interface to SQLite keywords. More... | |
| class | mutex |
| SQLite Mutex. More... | |
| class | snapshot |
| A database snapshot. More... | |
| struct | iovec_fallback |
| A fallback version of struct iovec for platforms that lack it. More... | |
| class | statement |
| Prepared Statement Object. More... | |
| class | value |
| Dynamically Typed Value Object. More... | |
| class | sqlite_version |
| Representation of SQLite version. More... | |
| class | index_info< T > |
| Virtual Table Indexing Information. More... | |
Typedefs | |
| using | iovec = <conditionally declared> |
| A portable version of struct iovec that SQLite uses for carray() functionality. | |
Functions | |
| void | initialize () |
| Initialize the SQLite library. | |
| void | shutdown () noexcept |
| Deinitialize the SQLite library. | |
| status_value | status (int op, bool reset=false) |
| Obtain SQLite runtime status. | |
| template<int Code, class ... Args> | |
| auto | config (Args &&...args) -> void |
| Configures SQLite library. | |
| template<class T = struct ::iovec, size_t = sizeof(T)> | |
| constexpr struct ::iovec * | detect_iovec (T *) |
| constexpr auto | detect_iovec (...) |
| struct thinsqlitepp::status_value |
Return type for status().
| Class Members | ||
|---|---|---|
| typedef sqlite3_int64 | counter_type sqlite3_int64 | |
| Class Members | ||
|---|---|---|
| counter_type | current | |
| counter_type | highwater | |
| struct thinsqlitepp::iovec_fallback |
A fallback version of struct iovec for platforms that lack it.
| Class Members | ||
|---|---|---|
| void * | iov_base | Base address of a memory region for input or output. |
| size_t | iov_len | The size of the memory pointed to by iov_base. |
| using iovec = <conditionally declared> |
A portable version of struct iovec that SQLite uses for carray() functionality.
On Posix platforms this is a typedef to struct iovec from <sys/uio.h> On other platforms this is a typedef to the thinsqlitepp::iovec_fallback.
Thus, for portability, you can use thinsqlitepp::iovec on any platform
|
inline |
|
inlinenoexcept |
|
inline |
Obtain SQLite runtime status.
Equivalent to sqlite3_status64 or sqlite3_status, if the former is not available
|
inline |
Configures SQLite library.
Wraps sqlite3_config
| Code | One of the SQLITE_CONFIG_ options. Needs to be explicitly specified |
| Args | depend on the Code template parameter |
#include <thinsqlitepp/global.hpp>
The following table lists required argument types for each option. Supplying wrong argument types will result in compile-time error.