MCPcopy Create free account
hub / github.com/SOCI/soci / soci_commit

Function soci_commit

src/core/soci-simple.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83SOCI_DECL void soci_commit(session_handle s)
84{
85 session_wrapper * wrapper = static_cast<session_wrapper *>(s);
86 try
87 {
88 wrapper->sql.commit();
89 wrapper->is_ok = true;
90 }
91 catch (std::exception const & e)
92 {
93 wrapper->is_ok = false;
94 wrapper->error_message = e.what();
95 }
96}
97
98SOCI_DECL void soci_rollback(session_handle s)
99{

Callers

nothing calls this directly

Calls 2

commitMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected