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

Class TempDataConverter

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

Source from the content-addressed store, hash-verified

78
79 // This nested class is used by Data::ResultValueFromJS to report errors.
80 class TempDataConverter : DataConverter { friend class CustomTable;
81 explicit TempDataConverter(CustomTable* parent) :
82 parent(parent),
83 status(SQLITE_OK) {}
84
85 void PropagateJSError(sqlite3_context* invocation) {
86 status = SQLITE_ERROR;
87 parent->PropagateJSError();
88 }
89
90 std::string GetDataErrorPrefix() {
91 return std::string("Virtual table module \"") + parent->name + "\" yielded";
92 }
93
94 CustomTable * const parent;
95 int status;
96 };
97
98 // Although this function does nothing, we cannot use xConnect directly,
99 // because that would cause SQLite to register an eponymous virtual table.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected