sqlmath 0.0.4 → 2022.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +10 -0
- package/CHANGELOG.md +7 -0
- package/README.md +3 -3
- package/_binary_sqlmath_napi8_darwin_x64.node +0 -0
- package/_binary_sqlmath_napi8_linux_x64.node +0 -0
- package/_binary_sqlmath_napi8_win32_x64.node +0 -0
- package/jslint.mjs +217 -149
- package/package.json +1 -1
- package/sqlmath.mjs +191 -44
- package/.gitconfig +0 -25
- package/.github/workflows/ci.yml +0 -119
- package/.github/workflows/publish.yml +0 -67
- package/.gitignore +0 -20
- package/asset_image_folder_open_solid.svg +0 -1
- package/jslint_ci.sh +0 -2795
- package/sqlite3.c +0 -248548
- package/sqlite3_ext.c +0 -8372
- package/sqlite3_shell.c +0 -22436
- package/sqlmath_base.c +0 -1832
- package/sqlmath_custom.c +0 -78
- package/sqlmath_custom.cpp +0 -0
- package/sqlmath_custom.mjs +0 -4
- package/sqlmath_old.js +0 -31038
package/sqlmath_custom.c
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// copyright nobody
|
|
2
|
-
// LINT_C_FILE
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// *INDENT-OFF*
|
|
6
|
-
#if defined(__cplusplus)
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
// *INDENT-ON*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// header
|
|
13
|
-
#include "sqlmath_base.c"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
file sqlmath_c - start
|
|
18
|
-
*/
|
|
19
|
-
#ifndef SQLMATH_NAPI
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/*
|
|
23
|
-
file sqlmath_c_custom_init
|
|
24
|
-
*/
|
|
25
|
-
int sqlite3_sqlmath_custom_init(
|
|
26
|
-
sqlite3 * db,
|
|
27
|
-
char **pzErrMsg,
|
|
28
|
-
const sqlite3_api_routines * pApi
|
|
29
|
-
) {
|
|
30
|
-
sqlite3_sqlmath_init(db, pzErrMsg, pApi);
|
|
31
|
-
return 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/*
|
|
35
|
-
file sqlmath_c - end
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/*
|
|
40
|
-
file sqlmath_napi - start
|
|
41
|
-
*/
|
|
42
|
-
#else // SQLMATH_NAPI
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/*
|
|
46
|
-
file sqlmath_napi_custom_init
|
|
47
|
-
*/
|
|
48
|
-
napi_value napi_module_custom_init(
|
|
49
|
-
napi_env env,
|
|
50
|
-
napi_value exports
|
|
51
|
-
) {
|
|
52
|
-
// typedef struct {
|
|
53
|
-
// // One of utf8name or name should be NULL.
|
|
54
|
-
// const char* utf8name;
|
|
55
|
-
// napi_value name;
|
|
56
|
-
//
|
|
57
|
-
// napi_callback method;
|
|
58
|
-
// napi_callback getter;
|
|
59
|
-
// napi_callback setter;
|
|
60
|
-
// napi_value value;
|
|
61
|
-
//
|
|
62
|
-
// napi_property_attributes attributes;
|
|
63
|
-
// void* data;
|
|
64
|
-
// } napi_property_descriptor;
|
|
65
|
-
napi_module_init(env, exports);
|
|
66
|
-
return exports;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
NAPI_MODULE(NODE_GYP_MODULE_NAME, napi_module_custom_init)
|
|
70
|
-
#endif // SQLMATH_NAPI
|
|
71
|
-
/*
|
|
72
|
-
file sqlmath_napi - end
|
|
73
|
-
*/
|
|
74
|
-
// *INDENT-OFF*
|
|
75
|
-
#if defined(__cplusplus)
|
|
76
|
-
}
|
|
77
|
-
#endif
|
|
78
|
-
// *INDENT-ON*
|
package/sqlmath_custom.cpp
DELETED
|
File without changes
|
package/sqlmath_custom.mjs
DELETED