Mercurial > urweb
comparison include/urweb/urweb_cpp.h @ 2177:00cf8214c2e3
Switching to a more dynamic method of handling database reconnection, restarting transactions
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 17 Oct 2015 11:08:12 -0400 |
parents | d2a98983f502 |
children | 14c45a0b6362 1e3ba868f8bf |
comparison
equal
deleted
inserted
replaced
2176:d2a98983f502 | 2177:00cf8214c2e3 |
---|---|
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 void uw_try_reconnecting_and_restarting(struct uw_context *); |
44 failure_kind uw_begin_onError(struct uw_context *, char *msg); | 44 failure_kind uw_begin_onError(struct uw_context *, char *msg); |
45 void uw_login(struct uw_context *); | 45 void uw_login(struct uw_context *); |
46 int uw_commit(struct uw_context *); | 46 int uw_commit(struct uw_context *); |
47 // ^-- returns nonzero if the transaction should be restarted | 47 // ^-- returns nonzero if the transaction should be restarted |
48 int uw_rollback(struct uw_context *, int will_retry); | 48 int uw_rollback(struct uw_context *, int will_retry); |