MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / SetCode

Method SetCode

src/util/constants.cpp:167–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void SetCode(Napi::Env env, int code, const char* str) {
168 codes.emplace(code, Napi::Persistent(InternalizedFromLatin1(env, str)));
169 }
170
171 std::unordered_map<int, Napi::Reference<Napi::String>> codes;
172};

Callers

nothing calls this directly

Calls 1

InternalizedFromLatin1Function · 0.85

Tested by

no test coverage detected