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

Method bind_double

dlib/sqlite/sqlite.h:463–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461 }
462
463 void bind_double (
464 unsigned long parameter_id,
465 const double& item
466 )
467 {
468 // make sure requires clause is not broken
469 DLIB_ASSERT(1 <= parameter_id && parameter_id <= get_max_parameter_id(),
470 "\t void statement::bind_double()"
471 << "\n\t Invalid parameter id."
472 << "\n\t parameter_id: " << parameter_id
473 << "\n\t get_max_parameter_id(): " << get_max_parameter_id()
474 << "\n\t this: " << this
475 );
476
477 reset();
478 int status = sqlite3_bind_double(stmt, parameter_id, item);
479
480 if (status != SQLITE_OK)
481 {
482 throw sqlite_error(sqlite3_errmsg(db.get()));
483 }
484 }
485
486 void bind_int (
487 unsigned long parameter_id,

Callers

nothing calls this directly

Calls 2

sqlite_errorClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected