4 #include <dballe/fwd.h> 7 #include <dballe/db/v7/trace.h> 8 #include <dballe/db/v7/fwd.h> 34 void init_after_connect();
37 DB(std::unique_ptr<dballe::sql::Connection> conn);
40 db::Format
format()
const {
return Format::V7; }
45 std::shared_ptr<dballe::Transaction>
transaction(
bool readonly=
false)
override;
46 std::shared_ptr<dballe::db::Transaction>
test_transaction(
bool readonly=
false)
override;
61 void reset(
const char* repinfo_file = 0);
Forward declarations for public dballe/sql names.
std::shared_ptr< dballe::db::Transaction > test_transaction(bool readonly=false) override
Same as transaction(), but the resulting transaction will throw an exception if commit is called...
std::shared_ptr< dballe::Transaction > transaction(bool readonly=false) override
Begin a transaction on this database, and return a Transaction object that can be used to commit it...
Definition: db/v7/trace.h:194
Functions used to connect to DB-All.e and insert, query and delete data.
void vacuum()
Remove orphan values from the database.
db::Format format() const
Return the format of this DB.
Definition: db/v7/db.h:40
void reset(const char *repinfo_file=0)
Reset the database, removing all existing DBALLE tables and re-creating them empty.
dballe::sql::Connection * conn
Database connection.
Definition: db/v7/db.h:24
Definition: transaction.h:15
void delete_tables()
Delete all the DB-ALLe tables from the database.
void disappear()
Remove all our traces from the database, if applicable.
v7::Driver & driver()
Access the backend DB driver.
bool explain_queries
True if we print an EXPLAIN trace of all queries to stderr.
Definition: db/v7/db.h:28
DB-ALLe database connection for database format V7.
Definition: db/v7/db.h:20
v7::Driver * m_driver
SQL driver backend.
Definition: db/v7/db.h:32
Trace * trace
Database query tracing.
Definition: db/v7/db.h:26