MCPcopy Create free account
hub / github.com/blue-yonder/turbodbc / flush

Method flush

cpp/turbodbc_python/Library/src/python_parameter_set.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21python_parameter_set::~python_parameter_set() = default;
22
23void python_parameter_set::flush()
24{
25 // release the GIL here because bound_parameter_set::execute_batch may perform
26 // a blocking ODBC call (statement::execute_prepared)
27 pybind11::gil_scoped_release release;
28
29 // bound result set handles empty parameter sets
30 parameters_.execute_batch(current_parameter_set_);
31 current_parameter_set_ = 0;
32}
33
34void python_parameter_set::add_parameter_set(pybind11::iterable const & parameter_set)
35{

Callers 2

executeMethod · 0.45
executemanyMethod · 0.45

Calls 1

execute_batchMethod · 0.80

Tested by

no test coverage detected