/usr/include/dballe/db/v6/sqlite/attrv6.h is in libdballe-dev 7.21-1build1.
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 44 | #ifndef DBALLE_DB_V6_SQLITE_ATTRV6_H
#define DBALLE_DB_V6_SQLITE_ATTRV6_H
#include <dballe/db/v6/attrv6.h>
#include <dballe/sql/fwd.h>
namespace dballe {
namespace db {
namespace v6 {
namespace sqlite {
/**
* Precompiled queries to manipulate the attr table
*/
class SQLiteAttrV6 : public v6::AttrV6
{
protected:
/** DB connection. */
dballe::sql::SQLiteConnection& conn;
/// Precompiled select statement
dballe::sql::SQLiteStatement* sstm = nullptr;
/// Precompiled insert statement
dballe::sql::SQLiteStatement* istm = nullptr;
/// Precompiled update statement
dballe::sql::SQLiteStatement* ustm = nullptr;
public:
SQLiteAttrV6(dballe::sql::SQLiteConnection& conn);
SQLiteAttrV6(const SQLiteAttrV6&) = delete;
SQLiteAttrV6(const SQLiteAttrV6&&) = delete;
SQLiteAttrV6& operator=(const SQLiteAttrV6&) = delete;
~SQLiteAttrV6();
void insert(dballe::sql::Transaction& t, v6::bulk::InsertAttrsV6& vars, UpdateMode update_mode=UPDATE) override;
void read(int id_data, std::function<void(std::unique_ptr<wreport::Var>)> dest) override;
void dump(FILE* out) override;
};
}
}
}
}
#endif
|