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

Method VTab

src/util/custom-table.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 // This nested class is instantiated on each CREATE VIRTUAL TABLE statement.
26 class VTab { friend class CustomTable;
27 explicit VTab(
28 CustomTable* parent,
29 Napi::Function generator,
30 std::vector<std::string> parameter_names,
31 bool safe_ints
32 ) :
33 parent(parent),
34 parameter_count(parameter_names.size()),
35 safe_ints(safe_ints),
36 generator(Napi::Persistent(generator)),
37 parameter_names(parameter_names) {
38 ((void)base);
39 }
40
41 static inline CustomTable::VTab* Upcast(sqlite3_vtab* vtab) {
42 return reinterpret_cast<VTab*>(vtab);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected