diff options
author | deva <deva> | 2011-01-25 12:17:47 +0000 |
---|---|---|
committer | deva <deva> | 2011-01-25 12:17:47 +0000 |
commit | 13f286925b1e9e34fe71413edcba23686c005f8a (patch) | |
tree | d1ea04756f6eb198fb18a367423670734e6e062a /server/src/pracrodaopgsql.h | |
parent | 1680325095c79bd66c13e6e0bd9fb6340c83a1e0 (diff) |
New database layout.
Diffstat (limited to 'server/src/pracrodaopgsql.h')
-rw-r--r-- | server/src/pracrodaopgsql.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/server/src/pracrodaopgsql.h b/server/src/pracrodaopgsql.h index e15a22b..e3664f9 100644 --- a/server/src/pracrodaopgsql.h +++ b/server/src/pracrodaopgsql.h @@ -44,15 +44,19 @@ public: std::string _user, std::string _passwd, std::string _dbname); ~PracroDAOPgsql(); - void commitTransaction(Transaction &transaction, + std::string newSessionId(); + void commitTransaction(std::string sessionid, + Transaction &transaction, Commit &commit, Macro ¯o, time_t now); - Values getLatestValues(std::string patientid, + Values getLatestValues(std::string sessionid, + std::string patientid, Macro *macro, Fieldnames &fieldnames, time_t oldest); - unsigned nrOfCommits(std::string patientid, + unsigned nrOfCommits(std::string sessionid, + std::string patientid, std::string macroname, time_t oldest); @@ -60,16 +64,14 @@ public: void delFieldname(std::string name); std::vector<Fieldname> getFieldnames(); - void commit(); - void discard(); - std::string serialise(); - void restore(const std::string &data); + void commit(std::string sessionid); + void nocommit(std::string sessionid); + void discard(std::string sessionid); + std::string serialise() { return ""; } + void restore(const std::string &data) {} private: pqxx::connection *conn; - pqxx::work *W; - - std::string statements; }; #endif/*WITHOUT_DB*/ |