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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -