scclib-sqlite
Stable Cloud Computing Sqlite Library
|
Go to the documentation of this file.
70 Conn(
const std::string& =
"file:mem?mode=memory&cache=shared");
74 Conn& operator=(
const Conn&) =
delete;
82 void reopen(
const std::string& =
"file:mem?mode=memory&cache=shared");
131 sqlite3_stmt* m_stmt;
133 std::ostringstream m_sql;
134 std::string::size_type m_pos;
219 void col_blob(
int, std::vector<char>&);
void clear()
Clear the request and the sql() stream.
std::string col_text(int)
Return UTF-8 TEXT.
int col_int(int)
Return 32-bit INTEGER.
std::ostringstream & sql()
Sql streamer.
void col_blob(int, std::vector< char > &)
Return BLOB unstructured data.
void abort()
ROLLBACK (abort) the transaction.
Conn(const std::string &="file:mem?mode=memory&cache=shared")
Constructs and open a sqlite in-memory database connection.
void exec()
Execute all statements, ignoring all row data.
double col_real(int)
Return 64-bit REAL.
void begin()
BEGIN the transaction.
int64_t col_int64(int)
Return 64-bit INTEGER.
int exec_select()
Executes in select mode.
void reset()
Reset the request without clearing the sql() stream.
bool is_active() const
Is this transaction active?
void commit()
COMMIT the transaction.
std::string col_name(int)
Return column name.
void reopen(const std::string &="file:mem?mode=memory&cache=shared")
Reopen the connection.
int next_row()
Get the next row.