MCPcopy Create free account
hub / github.com/sql-js/sql.js / test_add

Function test_add

test/test_functions.js:21–23  ·  view source on GitHub ↗
(int1, int2)

Source from the content-addressed store, hash-verified

19 db.exec("CREATE TABLE test2 (int1, int2); INSERT INTO test2 VALUES (456, 789);");
20
21 function test_add(int1, int2) {
22 return int1 + int2;
23 };
24
25 db.create_function("TestAdd", test_add);
26 result = db.exec("SELECT TestAdd(int1, int2) FROM test2;");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…