10 throw_bind_failure(
std::string const& column_type,
int const rc)
13 << column_type <<
".\n" 14 <<
"Return code: " << rc <<
'\n';
20 std::size_t
const idx,
23 int const rc{sqlite3_bind_double(s, idx, v)};
25 throw_bind_failure(
"double",
rc);
30 std::size_t
const idx,
33 int const rc{sqlite3_bind_int(s, idx, v)};
35 throw_bind_failure(
"int",
rc);
40 std::size_t
const idx,
41 std::uint32_t
const v)
43 int const rc{sqlite3_bind_int64(s, idx, v)};
45 throw_bind_failure(
"int64",
rc);
50 std::size_t
const idx,
53 int const rc{sqlite3_bind_int64(s, idx, v)};
55 throw_bind_failure(
"int64",
rc);
60 std::size_t
const idx,
63 int const rc{sqlite3_bind_text(s, idx, v.c_str(), v.size(),
nullptr)};
65 throw_bind_failure(
"text",
rc);
71 int const rc{sqlite3_bind_null(s, idx)};
73 throw_bind_failure(
"null",
rc);
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
struct sqlite3_stmt sqlite3_stmt
void bind_one_parameter(sqlite3_stmt *s, std::size_t const idx, double const v)
void bind_one_null(sqlite3_stmt *s, std::size_t const idx)