4 #include <dballe/fwd.h> 7 #include <dballe/db/v7/trace.h> 8 #include <dballe/db/v7/fwd.h> 24 std::shared_ptr<dballe::sql::Connection>
conn;
34 void init_after_connect();
37 DB(std::shared_ptr<dballe::sql::Connection>
conn);
40 db::Format
format()
const override {
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)
override;
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...
std::shared_ptr< dballe::sql::Connection > conn
Database connection.
Definition: db/v7/db.h:24
void disappear() override
Remove all our traces from the database, if applicable.
void reset(const char *repinfo_file=0) override
Reset the database, removing all existing DBALLE tables and re-creating them empty.
Definition: db/v7/trace.h:194
Functions used to connect to DB-All.e and insert, query and delete data.
db::Format format() const override
Return the format of this DB.
Definition: db/v7/db.h:40
Definition: transaction.h:15
void delete_tables()
Delete all the DB-ALLe tables from the database.
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
void vacuum() override
Remove orphan values from the database.
Trace * trace
Database query tracing.
Definition: db/v7/db.h:26