mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-07 19:26:10 -04:00
extend on reset() vs clearBindings()
This commit is contained in:
parent
ecc89c1f35
commit
d416b40583
@ -86,7 +86,10 @@ public:
|
||||
/// The finalization will be done by the destructor of the last shared pointer
|
||||
~Statement() = default;
|
||||
|
||||
/// Reset the statement to make it ready for a new execution. Throws an exception on error.
|
||||
/// Reset the statement to make it ready for a new execution by calling sqlite3_reset.
|
||||
/// Throws an exception on error.
|
||||
/// Call this function before any news calls to bind() if the statement was already executed before.
|
||||
/// Calling reset() does not clear the bindings (see clearBindings()).
|
||||
void reset();
|
||||
|
||||
/// Reset the statement. Returns the sqlite result code instead of throwing an exception on error.
|
||||
|
@ -43,7 +43,7 @@ Statement::Statement(Statement&& aStatement) noexcept :
|
||||
aStatement.mbDone = false;
|
||||
}
|
||||
|
||||
// Reset the statement to make it ready for a new execution (see also #clearBindings() bellow)
|
||||
// Reset the statement to make it ready for a new execution (see also #clearBindings() below)
|
||||
void Statement::reset()
|
||||
{
|
||||
const int ret = tryReset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user