MCPcopy Create free account
hub / github.com/davisking/dlib / bind_int

Method bind_int

dlib/sqlite/sqlite.h:486–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 }
485
486 void bind_int (
487 unsigned long parameter_id,
488 const int& item
489 )
490 {
491 // make sure requires clause is not broken
492 DLIB_ASSERT(1 <= parameter_id && parameter_id <= get_max_parameter_id(),
493 "\t void statement::bind_int()"
494 << "\n\t Invalid parameter id."
495 << "\n\t parameter_id: " << parameter_id
496 << "\n\t get_max_parameter_id(): " << get_max_parameter_id()
497 << "\n\t this: " << this
498 );
499
500 reset();
501 int status = sqlite3_bind_int(stmt, parameter_id, item);
502
503 if (status != SQLITE_OK)
504 {
505 throw sqlite_error(sqlite3_errmsg(db.get()));
506 }
507 }
508
509 void bind_int64 (
510 unsigned long parameter_id,

Callers

nothing calls this directly

Calls 2

sqlite_errorClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected