MCPcopy Create free account
hub / github.com/acl-dev/acl / add_column_value

Method add_column_value

lib_acl_cpp/src/db/sqlite_cursor.cpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#define INT4_STR_SIZE 20 // 18446744073709551615
50
51void sqlite_cursor::add_column_value(long long n)
52{
53 char* buf = (char*) dbuf_->dbuf_alloc(INT4_STR_SIZE + 1);
54 safe_snprintf(buf, INT4_STR_SIZE + 1, "%lld", n);
55 row_->push_back(buf, strlen(buf));
56}
57
58void sqlite_cursor::add_column_value(double n)
59{

Callers 1

nextMethod · 0.80

Calls 3

safe_snprintfFunction · 0.85
dbuf_allocMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected