1 #ifndef DBALLE_DB_V7_MYSQL_REPINFO_H
2 #define DBALLE_DB_V7_MYSQL_REPINFO_H
32 void dump(FILE* out)
override;
36 int id_use_count(
unsigned id,
const char* name)
override;
dballe::sql::MySQLConnection & conn
DB connection.
Definition: mysql/repinfo.h:24
Fast cached access to the repinfo table.
Definition: repinfo.h:71
void update_entry(const v7::repinfo::Cache &entry) override
Update an entry using the new_* fields of entry.
void read_cache() override
Reread the repinfo cache from the database FIXME: needed when rolling back a transaction,...
Fast cached access to the repinfo table.
Definition: mysql/repinfo.h:18
int id_use_count(unsigned id, const char *name) override
Return how many time this ID is used in the database.
void delete_entry(unsigned id) override
Delete a repinfo entry.
void insert_auto_entry(const char *memo) override
Create an automatic entry for a missing memo, and insert it in the database.
repinfo cache entry
Definition: repinfo.h:24
void insert_entry(const v7::repinfo::Cache &entry) override
Insert an entry using the new_* fields of entry.
Database connection.
Definition: mysql.h:126
void dump(FILE *out) override
Dump the entire contents of the database to an output stream.