| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected