MCPcopy Create free account
hub / github.com/bcndev/bytecoin / put

Function put

src/platform/DBsqlite3.cpp:195–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195static void put(sqlite::Stmt &stmt, const std::string &key, const void *data, size_t size) {
196 invariant(data || size == 0, "");
197 sqlite3_reset(stmt.handle);
198 stmt.bind_blob(1, key.data(), key.size());
199 stmt.bind_blob(2, data, size);
200 invariant(!stmt.step(), "put returned rows");
201}
202
203void DBsqliteKV::put(const std::string &key, const common::BinaryArray &value, bool nooverwrite) {
204 sqlite::Stmt &stmt = nooverwrite ? stmt_insert : stmt_update;

Callers 10

putMethod · 0.85
DBmemoryMethod · 0.85
putMethod · 0.85
WalletHDsqliteMethod · 0.85
putMethod · 0.85
set_passwordMethod · 0.85
import_view_keyMethod · 0.85
on_first_output_foundMethod · 0.85

Calls 4

bind_blobMethod · 0.80
stepMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected