sqlmath 0.0.1 → 2021.11.20
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 +53 -2
- package/LICENSE +16 -22
- package/README.md +18 -219
- 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 +10998 -0
- package/package.json +23 -8
- package/sqlmath.mjs +1713 -0
- package/.gitconfig +0 -25
- package/.github/workflows/ci.yml +0 -61
- package/.gitignore +0 -24
- package/extension-functions.c +0 -2047
- package/jslint_ci.sh +0 -1968
- package/node_sqlite3.cc +0 -11877
- package/sqlite-autoconf-3360000/INSTALL +0 -370
- package/sqlite-autoconf-3360000/Makefile.am +0 -20
- package/sqlite-autoconf-3360000/Makefile.fallback +0 -19
- package/sqlite-autoconf-3360000/Makefile.in +0 -1028
- package/sqlite-autoconf-3360000/Makefile.msc +0 -1037
- package/sqlite-autoconf-3360000/README.txt +0 -113
- package/sqlite-autoconf-3360000/Replace.cs +0 -223
- package/sqlite-autoconf-3360000/aclocal.m4 +0 -10199
- package/sqlite-autoconf-3360000/compile +0 -347
- package/sqlite-autoconf-3360000/config.guess +0 -1480
- package/sqlite-autoconf-3360000/config.sub +0 -1801
- package/sqlite-autoconf-3360000/configure +0 -16135
- package/sqlite-autoconf-3360000/configure.ac +0 -285
- package/sqlite-autoconf-3360000/depcomp +0 -791
- package/sqlite-autoconf-3360000/install-sh +0 -508
- package/sqlite-autoconf-3360000/ltmain.sh +0 -11156
- package/sqlite-autoconf-3360000/missing +0 -215
- package/sqlite-autoconf-3360000/shell.c +0 -22381
- package/sqlite-autoconf-3360000/sqlite3.1 +0 -286
- package/sqlite-autoconf-3360000/sqlite3.c +0 -235517
- package/sqlite-autoconf-3360000/sqlite3.h +0 -12353
- package/sqlite-autoconf-3360000/sqlite3.pc.in +0 -13
- package/sqlite-autoconf-3360000/sqlite3.rc +0 -83
- package/sqlite-autoconf-3360000/sqlite3ext.h +0 -663
- package/sqlite-autoconf-3360000/sqlite3rc.h +0 -3
- package/sqlite-autoconf-3360000/tea/Makefile.in +0 -440
- package/sqlite-autoconf-3360000/tea/README +0 -36
- package/sqlite-autoconf-3360000/tea/aclocal.m4 +0 -9
- package/sqlite-autoconf-3360000/tea/configure +0 -9989
- package/sqlite-autoconf-3360000/tea/configure.ac +0 -201
- package/sqlite-autoconf-3360000/tea/doc/sqlite3.n +0 -15
- package/sqlite-autoconf-3360000/tea/generic/tclsqlite3.c +0 -4016
- package/sqlite-autoconf-3360000/tea/license.terms +0 -6
- package/sqlite-autoconf-3360000/tea/pkgIndex.tcl.in +0 -7
- package/sqlite-autoconf-3360000/tea/tclconfig/install-sh +0 -528
- package/sqlite-autoconf-3360000/tea/tclconfig/tcl.m4 +0 -4168
- package/sqlite-autoconf-3360000/tea/win/makefile.vc +0 -419
- package/sqlite-autoconf-3360000/tea/win/nmakehlp.c +0 -815
- package/sqlite-autoconf-3360000/tea/win/rules.vc +0 -711
- package/sqlmath.js +0 -238
- package/test/backup.test.js +0 -279
- package/test/blob.test.js +0 -54
- package/test/cache.test.js +0 -42
- package/test/constants.test.js +0 -44
- package/test/database_fail.test.js +0 -153
- package/test/each.test.js +0 -39
- package/test/exec.test.js +0 -39
- package/test/extension.test.js +0 -26
- package/test/extension_functions.test.js +0 -29
- package/test/fts-content.test.js +0 -13
- package/test/interrupt.test.js +0 -80
- package/test/issue-108.test.js +0 -28
- package/test/json.test.js +0 -22
- package/test/map.test.js +0 -63
- package/test/named_columns.test.js +0 -38
- package/test/named_params.test.js +0 -69
- package/test/null_error.test.js +0 -41
- package/test/nw/.gitignore +0 -3
- package/test/nw/Makefile +0 -39
- package/test/nw/index.html +0 -14
- package/test/nw/package.json +0 -9
- package/test/open_close.test.js +0 -187
- package/test/other_objects.test.js +0 -98
- package/test/parallel_insert.test.js +0 -44
- package/test/prepare.test.js +0 -427
- package/test/profile.test.js +0 -57
- package/test/rerun.test.js +0 -50
- package/test/scheduling.test.js +0 -44
- package/test/serialization.test.js +0 -104
- package/test/support/createdb-electron.js +0 -10
- package/test/support/createdb.js +0 -47
- package/test/support/elmo.png +0 -0
- package/test/support/helper.js +0 -37
- package/test/support/script.sql +0 -70
- package/test/trace.test.js +0 -67
- package/test/unicode.test.js +0 -114
- package/test/upsert.test.js +0 -27
- package/test/verbose.test.js +0 -60
- package/test.js +0 -141
- package/test.slr.mjs +0 -212
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
#-----------------------------------------------------------------------
|
|
3
|
-
# Supports the following non-standard switches.
|
|
4
|
-
#
|
|
5
|
-
# --enable-threadsafe
|
|
6
|
-
# --enable-readline
|
|
7
|
-
# --enable-editline
|
|
8
|
-
# --enable-static-shell
|
|
9
|
-
# --enable-dynamic-extensions
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
AC_PREREQ(2.61)
|
|
13
|
-
AC_INIT(sqlite, 3.36.0, http://www.sqlite.org)
|
|
14
|
-
AC_CONFIG_SRCDIR([sqlite3.c])
|
|
15
|
-
AC_CONFIG_AUX_DIR([.])
|
|
16
|
-
|
|
17
|
-
# Use automake.
|
|
18
|
-
AM_INIT_AUTOMAKE([foreign])
|
|
19
|
-
|
|
20
|
-
AC_SYS_LARGEFILE
|
|
21
|
-
|
|
22
|
-
# Check for required programs.
|
|
23
|
-
AC_PROG_CC
|
|
24
|
-
AC_PROG_LIBTOOL
|
|
25
|
-
AC_PROG_MKDIR_P
|
|
26
|
-
|
|
27
|
-
# Check for library functions that SQLite can optionally use.
|
|
28
|
-
AC_CHECK_FUNCS([fdatasync usleep fullfsync localtime_r gmtime_r])
|
|
29
|
-
AC_FUNC_STRERROR_R
|
|
30
|
-
|
|
31
|
-
AC_CONFIG_FILES([Makefile sqlite3.pc])
|
|
32
|
-
BUILD_CFLAGS=
|
|
33
|
-
AC_SUBST(BUILD_CFLAGS)
|
|
34
|
-
|
|
35
|
-
#-------------------------------------------------------------------------
|
|
36
|
-
# Two options to enable readline compatible libraries:
|
|
37
|
-
#
|
|
38
|
-
# --enable-editline
|
|
39
|
-
# --enable-readline
|
|
40
|
-
#
|
|
41
|
-
# Both are enabled by default. If, after command line processing both are
|
|
42
|
-
# still enabled, the script searches for editline first and automatically
|
|
43
|
-
# disables readline if it is found. So, to use readline explicitly, the
|
|
44
|
-
# user must pass "--disable-editline". To disable command line editing
|
|
45
|
-
# support altogether, "--disable-editline --disable-readline".
|
|
46
|
-
#
|
|
47
|
-
# When searching for either library, check for headers before libraries
|
|
48
|
-
# as some distros supply packages that contain libraries but not header
|
|
49
|
-
# files, which come as a separate development package.
|
|
50
|
-
#
|
|
51
|
-
AC_ARG_ENABLE(editline, [AS_HELP_STRING([--enable-editline],[use BSD libedit])])
|
|
52
|
-
AC_ARG_ENABLE(readline, [AS_HELP_STRING([--enable-readline],[use readline])])
|
|
53
|
-
|
|
54
|
-
AS_IF([ test x"$enable_editline" != xno ],[
|
|
55
|
-
AC_CHECK_HEADERS([editline/readline.h],[
|
|
56
|
-
sLIBS=$LIBS
|
|
57
|
-
LIBS=""
|
|
58
|
-
AC_SEARCH_LIBS([readline],[edit],[
|
|
59
|
-
AC_DEFINE([HAVE_EDITLINE],1,Define to use BSD editline)
|
|
60
|
-
READLINE_LIBS="$LIBS -ltinfo"
|
|
61
|
-
enable_readline=no
|
|
62
|
-
],[],[-ltinfo])
|
|
63
|
-
AS_UNSET(ac_cv_search_readline)
|
|
64
|
-
LIBS=$sLIBS
|
|
65
|
-
])
|
|
66
|
-
])
|
|
67
|
-
|
|
68
|
-
AS_IF([ test x"$enable_readline" != xno ],[
|
|
69
|
-
AC_CHECK_HEADERS([readline/readline.h],[
|
|
70
|
-
sLIBS=$LIBS
|
|
71
|
-
LIBS=""
|
|
72
|
-
AC_SEARCH_LIBS(tgetent, termcap curses ncurses ncursesw, [], [])
|
|
73
|
-
AC_SEARCH_LIBS(readline,[readline edit], [
|
|
74
|
-
AC_DEFINE([HAVE_READLINE],1,Define to use readline or wrapper)
|
|
75
|
-
READLINE_LIBS=$LIBS
|
|
76
|
-
])
|
|
77
|
-
LIBS=$sLIBS
|
|
78
|
-
])
|
|
79
|
-
])
|
|
80
|
-
|
|
81
|
-
AC_SUBST(READLINE_LIBS)
|
|
82
|
-
#-----------------------------------------------------------------------
|
|
83
|
-
|
|
84
|
-
#-----------------------------------------------------------------------
|
|
85
|
-
# --enable-threadsafe
|
|
86
|
-
#
|
|
87
|
-
AC_ARG_ENABLE(threadsafe, [AS_HELP_STRING(
|
|
88
|
-
[--enable-threadsafe], [build a thread-safe library [default=yes]])],
|
|
89
|
-
[], [enable_threadsafe=yes])
|
|
90
|
-
if test x"$enable_threadsafe" == "xno"; then
|
|
91
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_THREADSAFE=0"
|
|
92
|
-
else
|
|
93
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
|
|
94
|
-
AC_SEARCH_LIBS(pthread_create, pthread)
|
|
95
|
-
AC_SEARCH_LIBS(pthread_mutexattr_init, pthread)
|
|
96
|
-
fi
|
|
97
|
-
#-----------------------------------------------------------------------
|
|
98
|
-
|
|
99
|
-
#-----------------------------------------------------------------------
|
|
100
|
-
# --enable-dynamic-extensions
|
|
101
|
-
#
|
|
102
|
-
AC_ARG_ENABLE(dynamic-extensions, [AS_HELP_STRING(
|
|
103
|
-
[--enable-dynamic-extensions], [support loadable extensions [default=yes]])],
|
|
104
|
-
[], [enable_dynamic_extensions=yes])
|
|
105
|
-
if test x"$enable_dynamic_extensions" != "xno"; then
|
|
106
|
-
AC_SEARCH_LIBS(dlopen, dl)
|
|
107
|
-
else
|
|
108
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
|
|
109
|
-
fi
|
|
110
|
-
AC_MSG_CHECKING([for whether to support dynamic extensions])
|
|
111
|
-
AC_MSG_RESULT($enable_dynamic_extensions)
|
|
112
|
-
#-----------------------------------------------------------------------
|
|
113
|
-
|
|
114
|
-
#-----------------------------------------------------------------------
|
|
115
|
-
# --enable-math
|
|
116
|
-
#
|
|
117
|
-
AC_ARG_ENABLE(math, [AS_HELP_STRING(
|
|
118
|
-
[--enable-math], [SQL math functions [default=yes]])],
|
|
119
|
-
[], [enable_math=yes])
|
|
120
|
-
AC_MSG_CHECKING([SQL math functions])
|
|
121
|
-
if test x"$enable_math" = "xyes"; then
|
|
122
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_MATH_FUNCTIONS"
|
|
123
|
-
AC_MSG_RESULT([enabled])
|
|
124
|
-
AC_SEARCH_LIBS(ceil, m)
|
|
125
|
-
else
|
|
126
|
-
AC_MSG_RESULT([disabled])
|
|
127
|
-
fi
|
|
128
|
-
#-----------------------------------------------------------------------
|
|
129
|
-
|
|
130
|
-
#-----------------------------------------------------------------------
|
|
131
|
-
# --enable-fts4
|
|
132
|
-
#
|
|
133
|
-
AC_ARG_ENABLE(fts4, [AS_HELP_STRING(
|
|
134
|
-
[--enable-fts4], [include fts4 support [default=yes]])],
|
|
135
|
-
[], [enable_fts4=yes])
|
|
136
|
-
AC_MSG_CHECKING([FTS4 extension])
|
|
137
|
-
if test x"$enable_fts4" = "xyes"; then
|
|
138
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS4"
|
|
139
|
-
AC_MSG_RESULT([enabled])
|
|
140
|
-
else
|
|
141
|
-
AC_MSG_RESULT([disabled])
|
|
142
|
-
fi
|
|
143
|
-
#-----------------------------------------------------------------------
|
|
144
|
-
|
|
145
|
-
#-----------------------------------------------------------------------
|
|
146
|
-
# --enable-fts3
|
|
147
|
-
#
|
|
148
|
-
AC_ARG_ENABLE(fts3, [AS_HELP_STRING(
|
|
149
|
-
[--enable-fts3], [include fts3 support [default=no]])],
|
|
150
|
-
[], [])
|
|
151
|
-
AC_MSG_CHECKING([FTS3 extension])
|
|
152
|
-
if test x"$enable_fts3" = "xyes" -a x"$enable_fts4" = "xno"; then
|
|
153
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS3"
|
|
154
|
-
AC_MSG_RESULT([enabled])
|
|
155
|
-
else
|
|
156
|
-
AC_MSG_RESULT([disabled])
|
|
157
|
-
fi
|
|
158
|
-
#-----------------------------------------------------------------------
|
|
159
|
-
|
|
160
|
-
#-----------------------------------------------------------------------
|
|
161
|
-
# --enable-fts5
|
|
162
|
-
#
|
|
163
|
-
AC_ARG_ENABLE(fts5, [AS_HELP_STRING(
|
|
164
|
-
[--enable-fts5], [include fts5 support [default=yes]])],
|
|
165
|
-
[], [enable_fts5=yes])
|
|
166
|
-
AC_MSG_CHECKING([FTS5 extension])
|
|
167
|
-
if test x"$enable_fts5" = "xyes"; then
|
|
168
|
-
AC_MSG_RESULT([enabled])
|
|
169
|
-
AC_SEARCH_LIBS(log, m)
|
|
170
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS5"
|
|
171
|
-
else
|
|
172
|
-
AC_MSG_RESULT([disabled])
|
|
173
|
-
fi
|
|
174
|
-
#-----------------------------------------------------------------------
|
|
175
|
-
|
|
176
|
-
#-----------------------------------------------------------------------
|
|
177
|
-
# --enable-json1
|
|
178
|
-
#
|
|
179
|
-
AC_ARG_ENABLE(json1, [AS_HELP_STRING(
|
|
180
|
-
[--enable-json1], [include json1 support [default=yes]])],
|
|
181
|
-
[],[enable_json1=yes])
|
|
182
|
-
AC_MSG_CHECKING([JSON functions])
|
|
183
|
-
if test x"$enable_json1" = "xyes"; then
|
|
184
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_JSON1"
|
|
185
|
-
AC_MSG_RESULT([enabled])
|
|
186
|
-
else
|
|
187
|
-
AC_MSG_RESULT([disabled])
|
|
188
|
-
fi
|
|
189
|
-
#-----------------------------------------------------------------------
|
|
190
|
-
|
|
191
|
-
#-----------------------------------------------------------------------
|
|
192
|
-
# --enable-rtree
|
|
193
|
-
#
|
|
194
|
-
AC_ARG_ENABLE(rtree, [AS_HELP_STRING(
|
|
195
|
-
[--enable-rtree], [include rtree support [default=yes]])],
|
|
196
|
-
[], [enable_rtree=yes])
|
|
197
|
-
AC_MSG_CHECKING([RTREE extension])
|
|
198
|
-
if test x"$enable_rtree" = "xyes"; then
|
|
199
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY"
|
|
200
|
-
AC_MSG_RESULT([enabled])
|
|
201
|
-
else
|
|
202
|
-
AC_MSG_RESULT([disabled])
|
|
203
|
-
fi
|
|
204
|
-
#-----------------------------------------------------------------------
|
|
205
|
-
|
|
206
|
-
#-----------------------------------------------------------------------
|
|
207
|
-
# --enable-session
|
|
208
|
-
#
|
|
209
|
-
AC_ARG_ENABLE(session, [AS_HELP_STRING(
|
|
210
|
-
[--enable-session], [enable the session extension [default=no]])],
|
|
211
|
-
[], [])
|
|
212
|
-
AC_MSG_CHECKING([Session extension])
|
|
213
|
-
if test x"$enable_session" = "xyes"; then
|
|
214
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
|
|
215
|
-
AC_MSG_RESULT([enabled])
|
|
216
|
-
else
|
|
217
|
-
AC_MSG_RESULT([disabled])
|
|
218
|
-
fi
|
|
219
|
-
#-----------------------------------------------------------------------
|
|
220
|
-
|
|
221
|
-
#-----------------------------------------------------------------------
|
|
222
|
-
# --enable-debug
|
|
223
|
-
#
|
|
224
|
-
AC_ARG_ENABLE(debug, [AS_HELP_STRING(
|
|
225
|
-
[--enable-debug], [build with debugging features enabled [default=no]])],
|
|
226
|
-
[], [])
|
|
227
|
-
AC_MSG_CHECKING([Build type])
|
|
228
|
-
if test x"$enable_debug" = "xyes"; then
|
|
229
|
-
BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_DEBUG -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE"
|
|
230
|
-
CFLAGS="-g -O0"
|
|
231
|
-
AC_MSG_RESULT([debug])
|
|
232
|
-
else
|
|
233
|
-
AC_MSG_RESULT([release])
|
|
234
|
-
fi
|
|
235
|
-
#-----------------------------------------------------------------------
|
|
236
|
-
|
|
237
|
-
#-----------------------------------------------------------------------
|
|
238
|
-
# --enable-static-shell
|
|
239
|
-
#
|
|
240
|
-
AC_ARG_ENABLE(static-shell, [AS_HELP_STRING(
|
|
241
|
-
[--enable-static-shell],
|
|
242
|
-
[statically link libsqlite3 into shell tool [default=yes]])],
|
|
243
|
-
[], [enable_static_shell=yes])
|
|
244
|
-
if test x"$enable_static_shell" = "xyes"; then
|
|
245
|
-
EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
|
|
246
|
-
else
|
|
247
|
-
EXTRA_SHELL_OBJ=libsqlite3.la
|
|
248
|
-
fi
|
|
249
|
-
AC_SUBST(EXTRA_SHELL_OBJ)
|
|
250
|
-
#-----------------------------------------------------------------------
|
|
251
|
-
|
|
252
|
-
AC_CHECK_FUNCS(posix_fallocate)
|
|
253
|
-
AC_CHECK_HEADERS(zlib.h,[
|
|
254
|
-
AC_SEARCH_LIBS(deflate,z,[BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_HAVE_ZLIB"])
|
|
255
|
-
])
|
|
256
|
-
|
|
257
|
-
AC_SEARCH_LIBS(system,,,[SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"])
|
|
258
|
-
AC_SUBST(SHELL_CFLAGS)
|
|
259
|
-
|
|
260
|
-
#-----------------------------------------------------------------------
|
|
261
|
-
# UPDATE: Maybe it's better if users just set CFLAGS before invoking
|
|
262
|
-
# configure. This option doesn't really add much...
|
|
263
|
-
#
|
|
264
|
-
# --enable-tempstore
|
|
265
|
-
#
|
|
266
|
-
# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
|
|
267
|
-
# [--enable-tempstore],
|
|
268
|
-
# [in-memory temporary tables (never, no, yes, always) [default=no]])],
|
|
269
|
-
# [], [enable_tempstore=no])
|
|
270
|
-
# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
|
|
271
|
-
# case "$enable_tempstore" in
|
|
272
|
-
# never ) TEMP_STORE=0 ;;
|
|
273
|
-
# no ) TEMP_STORE=1 ;;
|
|
274
|
-
# always ) TEMP_STORE=3 ;;
|
|
275
|
-
# yes ) TEMP_STORE=3 ;;
|
|
276
|
-
# * )
|
|
277
|
-
# TEMP_STORE=1
|
|
278
|
-
# enable_tempstore=yes
|
|
279
|
-
# ;;
|
|
280
|
-
# esac
|
|
281
|
-
# AC_MSG_RESULT($enable_tempstore)
|
|
282
|
-
# AC_SUBST(TEMP_STORE)
|
|
283
|
-
#-----------------------------------------------------------------------
|
|
284
|
-
|
|
285
|
-
AC_OUTPUT
|