| 2 | public: |
| 3 | |
| 4 | explicit CustomAggregate( |
| 5 | Napi::Env env, |
| 6 | Database* db, |
| 7 | const char* name, |
| 8 | Napi::Value start, |
| 9 | Napi::Function step, |
| 10 | Napi::Value inverse, |
| 11 | Napi::Value result, |
| 12 | bool safe_ints |
| 13 | ) : |
| 14 | CustomFunction(env, db, name, step, safe_ints), |
| 15 | invoke_result(result.IsFunction()), |
| 16 | invoke_start(start.IsFunction()), |
| 17 | inverse(inverse.IsFunction() ? Napi::Persistent(inverse.As<Napi::Function>()) : Napi::FunctionReference()), |
| 18 | result(result.IsFunction() ? Napi::Persistent(result.As<Napi::Function>()) : Napi::FunctionReference()), |
| 19 | start(Napi::Persistent(start)) {} |
| 20 | |
| 21 | static void xStep(sqlite3_context* invocation, int argc, sqlite3_value** argv) { |
| 22 | xStepBase(invocation, argc, argv, &CustomAggregate::fn); |
nothing calls this directly
no outgoing calls
no test coverage detected