comparison include/urweb/urweb_cpp.h @ 2176:d2a98983f502

Start of support for surviving database-server restarts, for Postgres
author Adam Chlipala <adam@chlipala.net>
date Sat, 17 Oct 2015 10:49:25 -0400
parents fd6d362666c0
children 00cf8214c2e3
comparison
equal deleted inserted replaced
2175:3ffef52d549c 2176:d2a98983f502
38 void uw_set_env(struct uw_context *, char *(*get_env)(void *, const char *), void *get_env_data); 38 void uw_set_env(struct uw_context *, char *(*get_env)(void *, const char *), void *get_env_data);
39 uw_loggers* uw_get_loggers(struct uw_context *ctx); 39 uw_loggers* uw_get_loggers(struct uw_context *ctx);
40 uw_loggers* uw_get_loggers(struct uw_context *ctx); 40 uw_loggers* uw_get_loggers(struct uw_context *ctx);
41 failure_kind uw_begin(struct uw_context *, char *path); 41 failure_kind uw_begin(struct uw_context *, char *path);
42 void uw_ensure_transaction(struct uw_context *); 42 void uw_ensure_transaction(struct uw_context *);
43 int uw_try_reconnecting_if_at_most_one(struct uw_context *);
43 failure_kind uw_begin_onError(struct uw_context *, char *msg); 44 failure_kind uw_begin_onError(struct uw_context *, char *msg);
44 void uw_login(struct uw_context *); 45 void uw_login(struct uw_context *);
45 int uw_commit(struct uw_context *); 46 int uw_commit(struct uw_context *);
46 // ^-- returns nonzero if the transaction should be restarted 47 // ^-- returns nonzero if the transaction should be restarted
47 int uw_rollback(struct uw_context *, int will_retry); 48 int uw_rollback(struct uw_context *, int will_retry);