mirror of
https://github.com/JonasunderscoreJones/api.jonasjones.dev.git
synced 2025-10-23 20:19:19 +02:00
Initial commit (by create-cloudflare CLI)
This commit is contained in:
commit
58a42872a0
1745 changed files with 741893 additions and 0 deletions
21
node_modules/better-sqlite3/deps/test_extension.c
generated
vendored
Normal file
21
node_modules/better-sqlite3/deps/test_extension.c
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include <sqlite3ext.h>
|
||||
SQLITE_EXTENSION_INIT1
|
||||
|
||||
/*
|
||||
This SQLite3 extension is used only for testing purposes (npm test).
|
||||
*/
|
||||
|
||||
static void TestExtensionFunction(sqlite3_context* pCtx, int nVal, sqlite3_value** _) {
|
||||
sqlite3_result_double(pCtx, (double)nVal);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
|
||||
int sqlite3_extension_init(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines* pApi) {
|
||||
SQLITE_EXTENSION_INIT2(pApi)
|
||||
if (pzErrMsg != 0) *pzErrMsg = 0;
|
||||
sqlite3_create_function(db, "testExtensionFunction", -1, SQLITE_UTF8, 0, TestExtensionFunction, 0, 0);
|
||||
return SQLITE_OK;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue