c++ - How to register a DB failover callback in SOCI? -


i connect database using soci library , want obtain database fail-over events logging purposes. i'm not sure interface implement , how callback registration. there such support in soci?

the failover notifications supported soci connections.

the failover_callback interface can used callback channel notifications of events automatically processed when session forcibly closed due connectivity problems.

see interface details @ https://github.com/soci/soci/blob/master/docs/connections.md


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -