}
}
+//LCOV_EXCL_START
void SqlConnection::DataCommand::BindNull(
SqlConnection::ArgumentIndex position)
{
LogPedantic("SQL data command bind null: ["
<< position << "]");
}
+//LCOV_EXCL_STOP
void SqlConnection::DataCommand::BindInteger(
SqlConnection::ArgumentIndex position,
<< position << "] -> " << value);
}
+//LCOV_EXCL_START
void SqlConnection::DataCommand::BindInt8(
SqlConnection::ArgumentIndex position,
int8_t value)
LogPedantic("SQL data command bind double: ["
<< position << "] -> " << value);
}
+//LCOV_EXCL_STOP
void SqlConnection::DataCommand::BindString(
SqlConnection::ArgumentIndex position,
<< position << "] -> " << raw.size());
}
+//LCOV_EXCL_START
void SqlConnection::DataCommand::BindInteger(
SqlConnection::ArgumentIndex position,
const boost::optional<int> &value)
else
BindNull(position);
}
+//LCOV_EXCL_STOP
bool SqlConnection::DataCommand::Step()
{
ThrowMsg(Exception::InvalidColumn, "Column index is out of bounds");
}
+//LCOV_EXCL_START
bool SqlConnection::DataCommand::IsColumnNull(
SqlConnection::ColumnIndex column)
{
CheckColumnIndex(column);
return sqlcipher3_column_type(m_stmt, column) == SQLCIPHER_NULL;
}
+//LCOV_EXCL_STOP
int SqlConnection::DataCommand::GetColumnInteger(
SqlConnection::ColumnIndex column)
return value;
}
+//LCOV_EXCL_START
int8_t SqlConnection::DataCommand::GetColumnInt8(
SqlConnection::ColumnIndex column)
{
LogPedantic(" Value: " << value);
return value;
}
+//LCOV_EXCL_STOP
std::string SqlConnection::DataCommand::GetColumnString(
SqlConnection::ColumnIndex column)
return RawBuffer(value, value + length);
}
+//LCOV_EXCL_START
boost::optional<int> SqlConnection::DataCommand::GetColumnOptionalInteger(
SqlConnection::ColumnIndex column)
{
RawBuffer temp(value, value + length);
return boost::optional<RawBuffer>(temp);
}
+//LCOV_EXCL_STOP
void SqlConnection::Connect(const std::string &address,
Flag::Option flag)
m_isKeySet = true;
};
+//LCOV_EXCL_START
void SqlConnection::ResetKey(const RawBuffer &rawPassOld,
const RawBuffer &rawPassNew)
{
ThrowMsg(Exception::InvalidArguments, result);
}
}
+//LCOV_EXCL_STOP
void SqlConnection::Disconnect()
{
}
}
+//LCOV_EXCL_START
int SqlConnection::Output::Callback(void *param, int columns, char **values,
char **names)
{
m_values.push_back(std::move(row));
}
+//LCOV_EXCL_STOP
void SqlConnection::ExecCommandHelper(Output *out, const char *format,
va_list args)
ThrowMsg(Exception::InternalError, "sqlite permanently busy");
}
+//LCOV_EXCL_START
void SqlConnection::ExecCommand(Output *out, const char *format, ...)
{
scoped_va_start(svl, format);
ExecCommandHelper(out, format, svl.args);
}
+//LCOV_EXCL_STOP
void SqlConnection::ExecCommand(const char *format, ...)
{
return DataCommandUniquePtr(new DataCommand(this, buffer.get()));
}
+//LCOV_EXCL_START
SqlConnection::RowID SqlConnection::GetLastInsertRowID() const
{
return static_cast<RowID>(sqlcipher3_last_insert_rowid(m_connection));
}
+//LCOV_EXCL_STOP
void SqlConnection::TurnOnForeignKeys()
{