22 #ifndef DBALLE_DB_POSTGRESQL_REPINFO_H
23 #define DBALLE_DB_POSTGRESQL_REPINFO_H
40 struct PostgreSQLConnection;
42 namespace postgresql {
61 void dump(FILE* out)
override;
64 int id_use_count(
unsigned id,
const char* name)
override;
78 int id_use_count(
unsigned id,
const char* name)
override;
void dump(FILE *out) override
Dump the entire contents of the database to an output stream.
void read_cache() override
Reread the repinfo cache from the database.
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Fast cached access to the repinfo table.
Definition: postgresql/repinfo.h:47
repinfo cache entry
Definition: sql/repinfo.h:30
void insert_entry(const sql::repinfo::Cache &entry) override
Insert 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.
void delete_entry(unsigned id) override
Delete a repinfo entry.
Database connection.
Definition: postgresql/internals.h:249
void update_entry(const sql::repinfo::Cache &entry) override
Update an entry using the new_* fields of entry.
Fast cached access to the repinfo table.
Definition: sql/repinfo.h:77
int id_use_count(unsigned id, const char *name) override
Return how many time this ID is used in the database.
Repinfo table management used by the db module.
void insert_auto_entry(const char *memo) override
Create an automatic entry for a missing memo, and insert it in the database.
PostgreSQLConnection & conn
DB connection.
Definition: postgresql/repinfo.h:53
Definition: postgresql/repinfo.h:73