Files
soci/include/private
Vadim Zeitlin 276a54d4d1 Add private auto_statement RAII helper
When working directly with concrete statement_backend classes, their
alloc() and clean_up() methods must be called directly, which suffers
from all the usual problems, especially in presence of exceptions.

Avoid them by using the new auto_statement class which takes care of
calling these methods in its ctor/dtor instead.

An alternative could be to make the concrete classes themselves use
RAII, but this would be more error prone (e.g. there would be a risk of
alloc() being called twice) and require many more changes, so, at least
for now, use this more lightweight solution.

No real changes.
2020-10-12 23:25:43 +02:00
..

soci/include/private

Private headers do not define any parts of public interface, are not installed in user's filesystem. Private headers only define common features used internally.