MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / sqlite3_shathree_init

Function sqlite3_shathree_init

modules/dasSQLITE/sqlite/shell.c:2332–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2330
2331#endif
2332int sqlite3_shathree_init(
2333 sqlite3 *db,
2334 char **pzErrMsg,
2335 const sqlite3_api_routines *pApi
2336){
2337 int rc = SQLITE_OK;
2338 SQLITE_EXTENSION_INIT2(pApi);
2339 (void)pzErrMsg; /* Unused parameter */
2340 rc = sqlite3_create_function(db, "sha3", 1,
2341 SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
2342 0, sha3Func, 0, 0);
2343 if( rc==SQLITE_OK ){
2344 rc = sqlite3_create_function(db, "sha3", 2,
2345 SQLITE_UTF8 | SQLITE_INNOCUOUS | SQLITE_DETERMINISTIC,
2346 0, sha3Func, 0, 0);
2347 }
2348 if( rc==SQLITE_OK ){
2349 rc = sqlite3_create_function(db, "sha3_query", 1,
2350 SQLITE_UTF8 | SQLITE_DIRECTONLY,
2351 0, sha3QueryFunc, 0, 0);
2352 }
2353 if( rc==SQLITE_OK ){
2354 rc = sqlite3_create_function(db, "sha3_query", 2,
2355 SQLITE_UTF8 | SQLITE_DIRECTONLY,
2356 0, sha3QueryFunc, 0, 0);
2357 }
2358 return rc;
2359}
2360
2361/************************* End ../ext/misc/shathree.c ********************/
2362/************************* Begin ../ext/misc/uint.c ******************/

Callers 1

open_dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected