1 #ifndef _FETCH_NEEDS_UPDATE_H
2 #define _FETCH_NEEDS_UPDATE_H 1
4 #include <pqxx/transactor>
8 /* A transactor that fetches when a given round was last updated. */
9 class FetchNeedsUpdate : public pqxx::transactor<> {
11 struct timeval last_updated;
12 unsigned tournament, round, parallel;
16 FetchNeedsUpdate(struct timeval last_updated, unsigned tournament, unsigned round, unsigned parallel, bool *result);
17 void operator() (pqxx::transaction<> &t);
20 #endif /* !defined(_FETCH_NEEDS_UPDATE_H) */