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.
Files changed (96) hide show
  1. package/.npmignore +10 -0
  2. package/CHANGELOG.md +53 -2
  3. package/LICENSE +16 -22
  4. package/README.md +18 -219
  5. package/_binary_sqlmath_napi8_darwin_x64.node +0 -0
  6. package/_binary_sqlmath_napi8_linux_x64.node +0 -0
  7. package/_binary_sqlmath_napi8_win32_x64.node +0 -0
  8. package/jslint.mjs +10998 -0
  9. package/package.json +23 -8
  10. package/sqlmath.mjs +1713 -0
  11. package/.gitconfig +0 -25
  12. package/.github/workflows/ci.yml +0 -61
  13. package/.gitignore +0 -24
  14. package/extension-functions.c +0 -2047
  15. package/jslint_ci.sh +0 -1968
  16. package/node_sqlite3.cc +0 -11877
  17. package/sqlite-autoconf-3360000/INSTALL +0 -370
  18. package/sqlite-autoconf-3360000/Makefile.am +0 -20
  19. package/sqlite-autoconf-3360000/Makefile.fallback +0 -19
  20. package/sqlite-autoconf-3360000/Makefile.in +0 -1028
  21. package/sqlite-autoconf-3360000/Makefile.msc +0 -1037
  22. package/sqlite-autoconf-3360000/README.txt +0 -113
  23. package/sqlite-autoconf-3360000/Replace.cs +0 -223
  24. package/sqlite-autoconf-3360000/aclocal.m4 +0 -10199
  25. package/sqlite-autoconf-3360000/compile +0 -347
  26. package/sqlite-autoconf-3360000/config.guess +0 -1480
  27. package/sqlite-autoconf-3360000/config.sub +0 -1801
  28. package/sqlite-autoconf-3360000/configure +0 -16135
  29. package/sqlite-autoconf-3360000/configure.ac +0 -285
  30. package/sqlite-autoconf-3360000/depcomp +0 -791
  31. package/sqlite-autoconf-3360000/install-sh +0 -508
  32. package/sqlite-autoconf-3360000/ltmain.sh +0 -11156
  33. package/sqlite-autoconf-3360000/missing +0 -215
  34. package/sqlite-autoconf-3360000/shell.c +0 -22381
  35. package/sqlite-autoconf-3360000/sqlite3.1 +0 -286
  36. package/sqlite-autoconf-3360000/sqlite3.c +0 -235517
  37. package/sqlite-autoconf-3360000/sqlite3.h +0 -12353
  38. package/sqlite-autoconf-3360000/sqlite3.pc.in +0 -13
  39. package/sqlite-autoconf-3360000/sqlite3.rc +0 -83
  40. package/sqlite-autoconf-3360000/sqlite3ext.h +0 -663
  41. package/sqlite-autoconf-3360000/sqlite3rc.h +0 -3
  42. package/sqlite-autoconf-3360000/tea/Makefile.in +0 -440
  43. package/sqlite-autoconf-3360000/tea/README +0 -36
  44. package/sqlite-autoconf-3360000/tea/aclocal.m4 +0 -9
  45. package/sqlite-autoconf-3360000/tea/configure +0 -9989
  46. package/sqlite-autoconf-3360000/tea/configure.ac +0 -201
  47. package/sqlite-autoconf-3360000/tea/doc/sqlite3.n +0 -15
  48. package/sqlite-autoconf-3360000/tea/generic/tclsqlite3.c +0 -4016
  49. package/sqlite-autoconf-3360000/tea/license.terms +0 -6
  50. package/sqlite-autoconf-3360000/tea/pkgIndex.tcl.in +0 -7
  51. package/sqlite-autoconf-3360000/tea/tclconfig/install-sh +0 -528
  52. package/sqlite-autoconf-3360000/tea/tclconfig/tcl.m4 +0 -4168
  53. package/sqlite-autoconf-3360000/tea/win/makefile.vc +0 -419
  54. package/sqlite-autoconf-3360000/tea/win/nmakehlp.c +0 -815
  55. package/sqlite-autoconf-3360000/tea/win/rules.vc +0 -711
  56. package/sqlmath.js +0 -238
  57. package/test/backup.test.js +0 -279
  58. package/test/blob.test.js +0 -54
  59. package/test/cache.test.js +0 -42
  60. package/test/constants.test.js +0 -44
  61. package/test/database_fail.test.js +0 -153
  62. package/test/each.test.js +0 -39
  63. package/test/exec.test.js +0 -39
  64. package/test/extension.test.js +0 -26
  65. package/test/extension_functions.test.js +0 -29
  66. package/test/fts-content.test.js +0 -13
  67. package/test/interrupt.test.js +0 -80
  68. package/test/issue-108.test.js +0 -28
  69. package/test/json.test.js +0 -22
  70. package/test/map.test.js +0 -63
  71. package/test/named_columns.test.js +0 -38
  72. package/test/named_params.test.js +0 -69
  73. package/test/null_error.test.js +0 -41
  74. package/test/nw/.gitignore +0 -3
  75. package/test/nw/Makefile +0 -39
  76. package/test/nw/index.html +0 -14
  77. package/test/nw/package.json +0 -9
  78. package/test/open_close.test.js +0 -187
  79. package/test/other_objects.test.js +0 -98
  80. package/test/parallel_insert.test.js +0 -44
  81. package/test/prepare.test.js +0 -427
  82. package/test/profile.test.js +0 -57
  83. package/test/rerun.test.js +0 -50
  84. package/test/scheduling.test.js +0 -44
  85. package/test/serialization.test.js +0 -104
  86. package/test/support/createdb-electron.js +0 -10
  87. package/test/support/createdb.js +0 -47
  88. package/test/support/elmo.png +0 -0
  89. package/test/support/helper.js +0 -37
  90. package/test/support/script.sql +0 -70
  91. package/test/trace.test.js +0 -67
  92. package/test/unicode.test.js +0 -114
  93. package/test/upsert.test.js +0 -27
  94. package/test/verbose.test.js +0 -60
  95. package/test.js +0 -141
  96. package/test.slr.mjs +0 -212
@@ -1,201 +0,0 @@
1
- #!/bin/bash -norc
2
- dnl This file is an input file used by the GNU "autoconf" program to
3
- dnl generate the file "configure", which is run during Tcl installation
4
- dnl to configure the system for the local environment.
5
- #
6
- # RCS: @(#) $Id: configure.in,v 1.43 2005/07/26 19:17:05 mdejong Exp $
7
-
8
- #-----------------------------------------------------------------------
9
- # Sample configure.in for Tcl Extensions. The only places you should
10
- # need to modify this file are marked by the string __CHANGE__
11
- #-----------------------------------------------------------------------
12
-
13
- #-----------------------------------------------------------------------
14
- # __CHANGE__
15
- # Set your package name and version numbers here.
16
- #
17
- # This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
18
- # set as provided. These will also be added as -D defs in your Makefile
19
- # so you can encode the package version directly into the source files.
20
- #-----------------------------------------------------------------------
21
-
22
- AC_INIT([sqlite], [3.36.0])
23
-
24
- #--------------------------------------------------------------------
25
- # Call TEA_INIT as the first TEA_ macro to set up initial vars.
26
- # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
27
- # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
28
- #--------------------------------------------------------------------
29
-
30
- TEA_INIT([3.9])
31
-
32
- AC_CONFIG_AUX_DIR(tclconfig)
33
-
34
- #--------------------------------------------------------------------
35
- # Load the tclConfig.sh file
36
- #--------------------------------------------------------------------
37
-
38
- TEA_PATH_TCLCONFIG
39
- TEA_LOAD_TCLCONFIG
40
-
41
- #--------------------------------------------------------------------
42
- # Load the tkConfig.sh file if necessary (Tk extension)
43
- #--------------------------------------------------------------------
44
-
45
- #TEA_PATH_TKCONFIG
46
- #TEA_LOAD_TKCONFIG
47
-
48
- #-----------------------------------------------------------------------
49
- # Handle the --prefix=... option by defaulting to what Tcl gave.
50
- # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
51
- #-----------------------------------------------------------------------
52
-
53
- TEA_PREFIX
54
-
55
- #-----------------------------------------------------------------------
56
- # Standard compiler checks.
57
- # This sets up CC by using the CC env var, or looks for gcc otherwise.
58
- # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
59
- # the basic setup necessary to compile executables.
60
- #-----------------------------------------------------------------------
61
-
62
- TEA_SETUP_COMPILER
63
-
64
- #-----------------------------------------------------------------------
65
- # __CHANGE__
66
- # Specify the C source files to compile in TEA_ADD_SOURCES,
67
- # public headers that need to be installed in TEA_ADD_HEADERS,
68
- # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
69
- # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
70
- # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
71
- # and PKG_TCL_SOURCES.
72
- #-----------------------------------------------------------------------
73
-
74
- TEA_ADD_SOURCES([tclsqlite3.c])
75
- TEA_ADD_HEADERS([])
76
- TEA_ADD_INCLUDES([-I\"`\${CYGPATH} \${srcdir}/generic`\"])
77
- TEA_ADD_LIBS([])
78
- TEA_ADD_CFLAGS([-DSQLITE_ENABLE_FTS3=1])
79
- TEA_ADD_CFLAGS([-DSQLITE_3_SUFFIX_ONLY=1])
80
- TEA_ADD_CFLAGS([-DSQLITE_ENABLE_RTREE=1])
81
- TEA_ADD_STUB_SOURCES([])
82
- TEA_ADD_TCL_SOURCES([])
83
-
84
- #--------------------------------------------------------------------
85
- # The --with-system-sqlite causes the TCL bindings to SQLite to use
86
- # the system shared library for SQLite rather than statically linking
87
- # against its own private copy. This is dangerous and leads to
88
- # undersirable dependences and is not recommended.
89
- # Patchs from rmax.
90
- #--------------------------------------------------------------------
91
- AC_ARG_WITH([system-sqlite],
92
- [AC_HELP_STRING([--with-system-sqlite],
93
- [use a system-supplied libsqlite3 instead of the bundled one])],
94
- [], [with_system_sqlite=no])
95
- if test x$with_system_sqlite != xno; then
96
- AC_CHECK_HEADER([sqlite3.h],
97
- [AC_CHECK_LIB([sqlite3],[sqlite3_initialize],
98
- [AC_DEFINE(USE_SYSTEM_SQLITE)
99
- LIBS="$LIBS -lsqlite3"])])
100
- fi
101
-
102
- #--------------------------------------------------------------------
103
- # __CHANGE__
104
- # Choose which headers you need. Extension authors should try very
105
- # hard to only rely on the Tcl public header files. Internal headers
106
- # contain private data structures and are subject to change without
107
- # notice.
108
- # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
109
- #--------------------------------------------------------------------
110
-
111
- TEA_PUBLIC_TCL_HEADERS
112
- #TEA_PRIVATE_TCL_HEADERS
113
-
114
- #TEA_PUBLIC_TK_HEADERS
115
- #TEA_PRIVATE_TK_HEADERS
116
- #TEA_PATH_X
117
-
118
- #--------------------------------------------------------------------
119
- # Check whether --enable-threads or --disable-threads was given.
120
- # This auto-enables if Tcl was compiled threaded.
121
- #--------------------------------------------------------------------
122
-
123
- TEA_ENABLE_THREADS
124
- if test "${TCL_THREADS}" = "1" ; then
125
- AC_DEFINE(SQLITE_THREADSAFE, 1, [Trigger sqlite threadsafe build])
126
- # Not automatically added by Tcl because its assumed Tcl links to them,
127
- # but it may not if it isn't really a threaded build.
128
- TEA_ADD_LIBS([$THREADS_LIBS])
129
- else
130
- AC_DEFINE(SQLITE_THREADSAFE, 0, [Trigger sqlite non-threadsafe build])
131
- fi
132
-
133
- #--------------------------------------------------------------------
134
- # The statement below defines a collection of symbols related to
135
- # building as a shared library instead of a static library.
136
- #--------------------------------------------------------------------
137
-
138
- TEA_ENABLE_SHARED
139
-
140
- #--------------------------------------------------------------------
141
- # This macro figures out what flags to use with the compiler/linker
142
- # when building shared/static debug/optimized objects. This information
143
- # can be taken from the tclConfig.sh file, but this figures it all out.
144
- #--------------------------------------------------------------------
145
-
146
- TEA_CONFIG_CFLAGS
147
-
148
- #--------------------------------------------------------------------
149
- # Set the default compiler switches based on the --enable-symbols option.
150
- #--------------------------------------------------------------------
151
-
152
- TEA_ENABLE_SYMBOLS
153
-
154
- #--------------------------------------------------------------------
155
- # Everyone should be linking against the Tcl stub library. If you
156
- # can't for some reason, remove this definition. If you aren't using
157
- # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
158
- # link against the non-stubbed Tcl library. Add Tk too if necessary.
159
- #--------------------------------------------------------------------
160
-
161
- AC_DEFINE(USE_TCL_STUBS, 1, [Use Tcl stubs])
162
- #AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
163
-
164
-
165
- #--------------------------------------------------------------------
166
- # Redefine fdatasync as fsync on systems that lack fdatasync
167
- #--------------------------------------------------------------------
168
- #
169
- #AC_CHECK_FUNC(fdatasync, , AC_DEFINE(fdatasync, fsync))
170
- # Check for library functions that SQLite can optionally use.
171
- AC_CHECK_FUNCS([fdatasync usleep fullfsync localtime_r gmtime_r])
172
-
173
- AC_FUNC_STRERROR_R
174
-
175
-
176
- #--------------------------------------------------------------------
177
- # This macro generates a line to use when building a library. It
178
- # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
179
- # and TEA_LOAD_TCLCONFIG macros above.
180
- #--------------------------------------------------------------------
181
-
182
- TEA_MAKE_LIB
183
-
184
- #--------------------------------------------------------------------
185
- # Determine the name of the tclsh and/or wish executables in the
186
- # Tcl and Tk build directories or the location they were installed
187
- # into. These paths are used to support running test cases only,
188
- # the Makefile should not be making use of these paths to generate
189
- # a pkgIndex.tcl file or anything else at extension build time.
190
- #--------------------------------------------------------------------
191
-
192
- TEA_PROG_TCLSH
193
- #TEA_PROG_WISH
194
-
195
- #--------------------------------------------------------------------
196
- # Finally, substitute all of the various values into the Makefile.
197
- # You may alternatively have a special pkgIndex.tcl.in or other files
198
- # which require substituting th AC variables in. Include these here.
199
- #--------------------------------------------------------------------
200
-
201
- AC_OUTPUT([Makefile pkgIndex.tcl])
@@ -1,15 +0,0 @@
1
- .TH sqlite3 n 4.1 "Tcl-Extensions"
2
- .HS sqlite3 tcl
3
- .BS
4
- .SH NAME
5
- sqlite3 \- an interface to the SQLite3 database engine
6
- .SH SYNOPSIS
7
- \fBsqlite3\fI command_name ?filename?\fR
8
- .br
9
- .SH DESCRIPTION
10
- SQLite3 is a self-contains, zero-configuration, transactional SQL database
11
- engine. This extension provides an easy to use interface for accessing
12
- SQLite database files from Tcl.
13
- .PP
14
- For full documentation see \fIhttp://www.sqlite.org/\fR and
15
- in particular \fIhttp://www.sqlite.org/tclsqlite.html\fR.