/usr/include/dballe/db/v6/sqlite/datav6.h is in libdballe-dev 7.21-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #ifndef DBALLE_DB_V6_SQLITE_DATA_H
#define DBALLE_DB_V6_SQLITE_DATA_H
#include <dballe/db/v6/datav6.h>
#include <dballe/sql/fwd.h>
namespace dballe {
struct Record;
namespace db {
namespace v6 {
namespace sqlite {
struct DB;
/**
* Precompiled query to manipulate the data table
*/
class SQLiteDataV6 : public v6::DataV6
{
protected:
/// DB connection
dballe::sql::SQLiteConnection& conn;
/// Precompiled select statement to prepare bulk insert
dballe::sql::SQLiteStatement* sstm = nullptr;
public:
SQLiteDataV6(dballe::sql::SQLiteConnection& conn);
SQLiteDataV6(const SQLiteDataV6&) = delete;
SQLiteDataV6(const SQLiteDataV6&&) = delete;
SQLiteDataV6& operator=(const SQLiteDataV6&) = delete;
~SQLiteDataV6();
void insert(dballe::sql::Transaction& t, v6::bulk::InsertV6& vars, UpdateMode update_mode=UPDATE) override;
void remove(const v6::QueryBuilder& qb) override;
void dump(FILE* out) override;
};
}
}
}
}
#endif
|