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

Function sqlite3_sqlar_init

modules/dasSQLITE/sqlite/shell.c:10008–10025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10006
10007#endif
10008int sqlite3_sqlar_init(
10009 sqlite3 *db,
10010 char **pzErrMsg,
10011 const sqlite3_api_routines *pApi
10012){
10013 int rc = SQLITE_OK;
10014 SQLITE_EXTENSION_INIT2(pApi);
10015 (void)pzErrMsg; /* Unused parameter */
10016 rc = sqlite3_create_function(db, "sqlar_compress", 1,
10017 SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
10018 sqlarCompressFunc, 0, 0);
10019 if( rc==SQLITE_OK ){
10020 rc = sqlite3_create_function(db, "sqlar_uncompress", 2,
10021 SQLITE_UTF8|SQLITE_INNOCUOUS, 0,
10022 sqlarUncompressFunc, 0, 0);
10023 }
10024 return rc;
10025}
10026
10027/************************* End ../ext/misc/sqlar.c ********************/
10028#endif

Callers 2

open_dbFunction · 0.85
arDotCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected