1 #ifndef DBALLE_DB_V6_POSTGRESQL_REPINFO_H
2 #define DBALLE_DB_V6_POSTGRESQL_REPINFO_H
15 namespace postgresql {
34 void dump(FILE* out)
override;
37 int id_use_count(
unsigned id,
const char* name)
override;
51 int id_use_count(
unsigned id,
const char* name)
override;
Database connection.
Definition: postgresql.h:240
Fast cached access to the repinfo table.
Definition: v6/postgresql/repinfo.h:20
void dump(FILE *out) override
Dump the entire contents of the database to an output stream.
void insert_auto_entry(const char *memo) override
Create an automatic entry for a missing memo, and insert it in the database.
int id_use_count(unsigned id, const char *name) override
Return how many time this ID is used in the database.
Forward declarations for public dballe/sql names.
void delete_entry(unsigned id) override
Delete a repinfo entry.
void update_entry(const v6::repinfo::Cache &entry) override
Update an entry using the new_* fields of entry.
dballe::sql::PostgreSQLConnection & conn
DB connection.
Definition: v6/postgresql/repinfo.h:26
void insert_entry(const v6::repinfo::Cache &entry) override
Insert an entry using the new_* fields of entry.
repinfo cache entry
Definition: v6/repinfo.h:29
Fast cached access to the repinfo table.
Definition: v6/repinfo.h:76
int id_use_count(unsigned id, const char *name) override
Return how many time this ID is used in the database.
void read_cache() override
Reread the repinfo cache from the database.
Definition: v6/postgresql/repinfo.h:46
Repinfo table management used by the db module.