void BindString(ArgumentIndex position, const String& value);
/**
+ * Bind string to the prepared statement argument
+ *
+ * @param position Index of argument to bind value to
+ * @param value Value to bind
+ */
+ void BindString(ArgumentIndex position, const std::string& value);
+
+ /**
* Bind optional int to the prepared statement argument.
* If optional is not set null will be bound
*
BindString(position, ToUTF8String(value).c_str());
}
+void SqlConnection::DataCommand::BindString(
+ SqlConnection::ArgumentIndex position,
+ const std::string& value)
+{
+ CheckBindResult(sqlite3_bind_text(m_stmt, position,
+ value.c_str(), value.length(),
+ SQLITE_TRANSIENT));
+
+ LogPedantic("SQL data command bind string: ["
+ << position << "] -> " << value);
+}
+
void SqlConnection::DataCommand::BindInteger(
SqlConnection::ArgumentIndex position,
const boost::optional<int> &value)