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

Method bind_int64

dlib/sqlite/sqlite.h:509–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507 }
508
509 void bind_int64 (
510 unsigned long parameter_id,
511 const int64& item
512 )
513 {
514 // make sure requires clause is not broken
515 DLIB_ASSERT(1 <= parameter_id && parameter_id <= get_max_parameter_id(),
516 "\t void statement::bind_int64()"
517 << "\n\t Invalid parameter id."
518 << "\n\t parameter_id: " << parameter_id
519 << "\n\t get_max_parameter_id(): " << get_max_parameter_id()
520 << "\n\t this: " << this
521 );
522
523 reset();
524 int status = sqlite3_bind_int64(stmt, parameter_id, item);
525
526 if (status != SQLITE_OK)
527 {
528 throw sqlite_error(sqlite3_errmsg(db.get()));
529 }
530 }
531
532 void bind_null (
533 unsigned long parameter_id

Callers

nothing calls this directly

Calls 2

sqlite_errorClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected