SQLitePlus
v1.04
A modern C++ header only SQLite3 wrapper.
|
#include <SQLITE3.hpp>
Public Member Functions | |
SQLITE3 (const std::string &db_name="") | |
SQLITE3 (const SQLITE3 &rhs) | |
SQLITE3 & | operator= (const SQLITE3 &rhs) |
~SQLITE3 () | |
int | open (std::string &db_name) |
int | commit () |
int | execute (SQLITE3_QUERY &query) |
int | execute (std::string &query) |
int | execute (const char *query) |
std::shared_ptr< SQLITE_ROW_VECTOR > | copy_column_names () const |
int | get_result_col_count () const |
int | get_result_row_count () const |
std::shared_ptr< std::vector< SQLITE_ROW_VECTOR > > | copy_result () const |
const std::vector< SQLITE_ROW_VECTOR > * | get_result () const |
void | print_result () const |
const sqlite3 * | get_db () const |
void | perror () |
int | add_function (const std::string &name, int argc, void(*lambda)(sqlite3_context *, int, sqlite3_value **)) |
Public Attributes | |
char | error_no {} |
Wrapper Library for sqlite3
|
inlineexplicit |
Constructor
db_name | name of database to open |
|
inline |
copy construction
|
inline |
Destructor
|
inline |
Add simple user defined function to database
name | name of function |
argc | number of argument a function take |
lambda | function implementation @lambda_arg void (sqlite3_context* context, int argc, sqlite3_value** value) |
|
inline |
Commit all change to database, then start a new transaction
|
inline |
Return the a copy of the column names for the result of the last query
|
inline |
Return the a copy of the result of the last query
|
inline |
Execute query
query |
|
inline |
Execute query
query |
|
inline |
Execute query
query |
|
inline |
Get sqlite3 pointer, allowing user to expand the functions of SQLite
|
inline |
Return the result of a query
|
inline |
Get the number of col returned
|
inline |
Get the number of row returned
|
inline |
Connect to db named db_name
db_name | name of the database to open |
|
inline |
Read the class wide error_no and print parsed error to std::cerr
|
inline |
Print out result of a query