#include <ngen_sqlite.hpp>
|
| | database ()=delete |
| |
| | database (const database &)=delete |
| |
| database & | operator= (const database &)=delete |
| |
| | database (database &&)=default |
| |
| database & | operator= (database &&)=default |
| |
| | ~database ()=default |
| |
| | database (const std::string &path) |
| | Construct a new sqlite object from a path to database.
|
| |
| sqlite3 * | connection () const noexcept |
| | Return the originating sqlite3 database pointer.
|
| |
| bool | contains (const std::string &table) const |
| | Check if SQLite database contains a given table.
|
| |
| std::set< std::string > | columns (const std::string &table) const |
| | List the column names of a table.
|
| |
| iterator | query (const std::string &statement, const std::span< const std::string > binds={}) const |
| | Query the SQLite Database and get the result.
|
| |
| template<typename... Ts, std::enable_if_t< ngen::traits::all_is_convertible< std::string, Ts... >::value, bool > = true> |
| iterator | query (const std::string &statement, const Ts &... params) const |
| | Query the SQLite Database with a bound statement and get the result.
|
| |
◆ sqlite_t
◆ stmt_t
◆ database() [1/4]
| ngen::sqlite::database::database |
( |
| ) |
|
|
delete |
◆ database() [2/4]
| ngen::sqlite::database::database |
( |
const database & | | ) |
|
|
delete |
◆ database() [3/4]
| ngen::sqlite::database::database |
( |
database && | | ) |
|
|
default |
◆ ~database()
| ngen::sqlite::database::~database |
( |
| ) |
|
|
default |
◆ database() [4/4]
| ngen::sqlite::database::database |
( |
const std::string & | path | ) |
|
|
explicit |
Construct a new sqlite object from a path to database.
- Parameters
-
| path | File path to sqlite3 database |
References conn_.
◆ columns()
| auto ngen::sqlite::database::columns |
( |
const std::string & | table | ) |
const |
◆ connection()
| auto ngen::sqlite::database::connection |
( |
| ) |
const |
|
noexcept |
◆ contains()
| auto ngen::sqlite::database::contains |
( |
const std::string & | table | ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ query() [1/2]
| auto ngen::sqlite::database::query |
( |
const std::string & | statement, |
|
|
const std::span< const std::string > | binds = {} ) const |
◆ query() [2/2]
| iterator ngen::sqlite::database::query |
( |
const std::string & | statement, |
|
|
const Ts &... | params ) const |
|
inline |
Query the SQLite Database with a bound statement and get the result.
- Parameters
-
| statement | String query with parameters |
| params | parameters to bind to statement |
- Returns
- SQLite row iterator
References query().
◆ conn_
| sqlite_t ngen::sqlite::database::conn_ = nullptr |
|
private |
The documentation for this class was generated from the following files: