1 #ifndef DBALLE_DB_V7_MYSQL_REPINFO_H 2 #define DBALLE_DB_V7_MYSQL_REPINFO_H 34 void dump(FILE* out)
override;
38 int id_use_count(
unsigned id,
const char* name)
override;
void insert_auto_entry(const char *memo) override
Create an automatic entry for a missing memo, and insert it in the database.
void delete_entry(unsigned id) override
Delete a repinfo entry.
Fast cached access to the repinfo table.
Definition: v7/repinfo.h:76
void insert_entry(const v7::repinfo::Cache &entry) override
Insert an entry using the new_* fields of entry.
Forward declarations for public dballe/sql names.
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
void update_entry(const v7::repinfo::Cache &entry) override
Update an entry using the new_* fields of entry.
int id_use_count(unsigned id, const char *name) override
Return how many time this ID is used in the database.
dballe::sql::MySQLConnection & conn
DB connection.
Definition: v7/mysql/repinfo.h:26
repinfo cache entry
Definition: v7/repinfo.h:29
void read_cache() override
Reread the repinfo cache from the database.
Fast cached access to the repinfo table.
Definition: v7/mysql/repinfo.h:20
void dump(FILE *out) override
Dump the entire contents of the database to an output stream.
Repinfo table management used by the db module.
Database connection.
Definition: mysql.h:125