cwal

All files named "s2/mod/sqlite3/mod_sqlite3.c"
Login

All files named "s2/mod/sqlite3/mod_sqlite3.c"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for s2/mod/sqlite3/mod_sqlite3.c

2022-04-03
15:15
Renamed PROP_REF back to PROPREF and WEAK_REF to WEAKREF. Fixed a crash bug in cwal_json_output() caused by the past few days' changes. file: [260ae0d29d] check-in: [97c2a53ad6] user: stephan branch: propref-type, size: 63637
2022-03-06
03:58
Accommodated a recent API change. Added a whcl function needed by the pending sqlite3 binding. file: [268a063fba] check-in: [bda484f89b] user: stephan branch: trunk, size: 63638
2022-02-25
19:56
Replaced s2_cb_throw() with cwal_cb_throw(). file: [5d874668fc] check-in: [4485a65e83] user: stephan branch: trunk, size: 63684
2021-06-26
09:30
Removed s2_rc_cstr() and s2_rc_cstr2(), now that we have cwal_rc_cstr_fallback(). file: [73de3cb8bf] check-in: [9bb5de51f2] user: stephan branch: trunk, size: 63620
2020-11-04
17:11
Simplified [8b5a777ff3] a bit. file: [49d45acead] check-in: [d54f7c3285] user: stephan branch: trunk, size: 63608
14:29
Fixed a null-pointer deref when sqlite.selectValues() SQL preparation failed. file: [cf35c6e63f] check-in: [8547848587] user: stephan branch: trunk, size: 63797
13:54
A quick and dirty workaround for a mysteriously-short refcount on the sqlite module's UDF storage. To look at more closely someday. file: [d3557ce8cc] check-in: [8b5a777ff3] user: stephan branch: trunk, size: 63777
2020-09-02
09:15
Updated for core lib code changes. file: [c95ae6f26e] check-in: [63e3d7b806] user: stephan branch: trunk, size: 63185
2020-08-15
10:03
Pedantic module init result code tweak. file: [42f537edda] check-in: [f6e5c4512a] user: stephan branch: trunk, size: 63211
2020-04-03
13:38
More refactoring with an eye towards reuse in other s2 modules. file: [e038a3233a] check-in: [8995246f97] user: stephan branch: trunk, size: 63126
12:00
Refactoring towards making the sqlite3 module usable from another loadable module. file: [d4279e60bf] check-in: [0ece46e7bd] user: stephan branch: trunk, size: 82141
2019-11-16
06:32
Set a default busy_handler on newly-opened db connections to attempt to avoid a bad-timing lock error when a client hits a CGI script multiple times when initializing a web page. (Edit: that doesn't entirely solve the problem but *seems* to have reduced it a bit.) file: [f9d8381ec2] check-in: [c70ec1a92a] user: stephan branch: trunk, size: 82649
2019-11-11
10:42
Added bindings for sqlite3.changes() and totalChanges(). file: [a6f4c82891] check-in: [2d6777173e] user: stephan branch: trunk, size: 82231
2019-11-08
17:51
Throw a cwal exception, instead of asserting, if COMMIT hook is called while a transaction is still active. Tracking down a problem where client-side test code triggers that condition by continuing testing after an intentionally failed operation. file: [48dd49874f] check-in: [0509d5b429] user: stephan branch: trunk, size: 81514
15:16
Added sqlite3.selectRows(). file: [473f2e4c05] check-in: [557d5e7ef9] user: stephan branch: trunk, size: 81500
2019-08-12
15:34
sqlite3: Objects (but not arrays/tuples) returned by selectRow() and friends now have no prototype, to avoid any confusion regarding inherited vs db properties. This also means, however, that they have no hasOwnProperty() method. file: [03a669dfea] check-in: [5de6644f38] user: stephan branch: trunk, size: 81117
2018-11-23
15:09
More minor cleanups and docs for the scope push/pop changes. It's ready to be merged into the trunk :). file: [d920ec1510] check-in: [92565f3d07] user: stephan branch: scope-push-pop-hooks, size: 80691
14:43
Snapshot. Lots of cleanup of the new s2_scope mechanism. Removed some now-obsolete s2 scope-handling functions. file: [7ea6990138] check-in: [b7de2a8e38] user: stephan branch: scope-push-pop-hooks, size: 80691
01:08
Improved the caching of various oft-used property keys. file: [b531afaf24] check-in: [63e7546d66] user: stephan branch: trunk, size: 80225
2018-11-22
15:36
Reimplemented sqlite3 aggregate UDF "final" call flag to use a call()-local var named $udfFinal, rather than a flag on the callback itself. file: [f480c13597] check-in: [1c9bb51184] user: stephan branch: trunk, size: 78544
2018-11-20
09:55
Squelched unused param warnings. file: [05568ca701] check-in: [2728cd3745] user: stephan branch: trunk, size: 76318
2018-11-17
19:14
sqlite3 module: fixed handling of Buffer arg in stmt.exec(). file: [a69cd9b258] check-in: [a42e56537b] user: stephan branch: trunk, size: 76075
2018-11-04
15:51
sqlite3.busyTimeout() now returns the db instance instead of the undefined value. file: [708137b236] check-in: [a7482d783d] user: stephan branch: trunk, size: 76123
2018-11-01
14:38
Removed the newly-added sqlite3.Stmt.stepStmt() - that role is already filled by Stmt.exec(). file: [20c29a7a1e] check-in: [c7ed11b166] user: stephan branch: trunk, size: 76083
2018-10-28
11:51
Added sqlite3.Stmt.stepStmt(). file: [03e03f9915] check-in: [42c45732a4] user: stephan branch: trunk, size: 76018
2018-10-25
11:42
Testing an unrelated sqlite3 UDF because it was easiest to do in this tree :/. file: [1f7f46985b] check-in: [2a9487cc32] user: stephan branch: trunk, size: 75640
2018-10-19
18:02
Propagate more sqlite error information when cursor stepping fails via db.each(). file: [f44f9c4bd5] check-in: [208fd42b7f] user: stephan branch: trunk, size: 72720
2018-10-17
19:50
Extended sqlite3.each({each:XXX,...}) so that if XXX is an array, we simply append each row to that array. Various minor cleanups in the each() impl. file: [a7fb4dd606] check-in: [d191e4ec44] user: stephan branch: trunk, size: 72512
2018-09-21
15:54
removed an unnecessary 'if' clause. file: [9b5de58d08] check-in: [0de2ee458f] user: stephan branch: trunk, size: 69756
2018-05-07
11:24
added s2.sqlite3.busyTimeout(). file: [af38ff9571] check-in: [2e18b1b0a7] user: stephan branch: trunk, size: 69763
2018-01-03
15:05
Removed the v1 s2 plugin init interface. file: [ef240e44fa] check-in: [fa16637e69] user: stephan branch: trunk, size: 68747
2018-01-01
16:02
Far too much tweaking in the s2 loadable module bits. file: [9bb6df6582] check-in: [d9164fb176] user: stephan branch: trunk, size: 68748
2017-12-31
17:46
Modularized the s2-to-C module build bits. Fixed broken static plugins (a macro resolution problem). file: [9e69cf5fc1] check-in: [b99c040786] user: stephan branch: trunk, size: 69148
2017-12-28
02:12
Added s2_set_from_script_v(). file: [c6bd94cad3] check-in: [f784922b14] user: stephan branch: trunk, size: 68990
01:26
Minor cleanups in the module bootstrapping code. file: [6522def1f1] check-in: [b7b225f650] user: stephan branch: trunk, size: 68989
2017-12-27
00:52
updated for cwal API changes. file: [634944a9b6] check-in: [e372fe4ce9] user: stephan branch: trunk, size: 69395
2017-11-24
23:23
minor s2 module tinkering. file: [c9db7f1318] check-in: [1b0ba8a488] user: stephan branch: trunk, size: 69380
2017-11-16
09:24
More work on building modules statically into s2sh. Fixed s2 amalgamation to work around new warnings from miniz. file: [7474e110b7] check-in: [794c8ec42a] user: stephan branch: trunk, size: 69337
06:52
Got basic infrastructure in place for building s2 the loadable modules as static modules which get linked directly in to s2sh. file: [d08b666973] check-in: [21be566a6f] user: stephan branch: trunk, size: 69393
2017-11-14
09:31
Added db.selectRow() to the sqlite3 module. file: [3dde3d4171] check-in: [587c5cb98b] user: stephan branch: trunk, size: 68619
2017-11-04
21:04
Minor improvments in the s2/native lifetime management in the sqlite module. file: [75eb8eb535] check-in: [aaf1a32235] user: stephan branch: trunk, size: 68204
2017-11-03
12:01
Consolidated duplicated functionality of s2_cb_toss() and s2_cb_throw() into the latter function. file: [9ab1854de5] check-in: [f9ebe4a8ed] user: stephan branch: trunk, size: 68124
01:39
Tinkering with the module loader to try to bend things such that we can choose to link (or not) certain modules into s2sh statically. That doesn't yet work because the build process for each module can be arbitrarily complex, and hooking those in to s2sh's build would be more difficult than i'm ready/willing to futz with right now. file: [bfddfd5582] check-in: [0ea9d180a5] user: stephan branch: trunk, size: 68093
2017-10-05
17:09
Merged (private) strlen-rewrite branch. This eliminates the 'length of 0 means to use cwal_strlen()' semantics from the major APIs (there may be a couple small outliers). My hands managed to survive, with the left pinky being only ever so slightly sore. file: [6f1b7c23f1] check-in: [ef477c5d1e] user: stephan branch: trunk, size: 68103
2017-03-25
22:12
tiny efficiency hack file: [8287bded69] check-in: [5e3e0bbaee] user: stephan branch: trunk, size: 68159
2017-03-23
16:16
renamed module, added Stmt.each(). file: [5035e28fdd] check-in: [ae69b81af9] user: stephan branch: trunk, size: 68210
2017-03-22
13:55
tiny tweaks in the sqlite3 module. testing out the hands. file: [eb6986edda] check-in: [9dc4897082] user: stephan branch: trunk, size: 67839
2017-03-14
02:01
Added Stmt.clearBindings(), other minor cleanups. file: [3fdd119833] check-in: [1ae2633e21] user: stephan branch: trunk, size: 67338
00:50
Added Stmt.exec() convenience function. Minor script-side touch-ups. file: [97d13b84ae] check-in: [ab4c391797] user: stephan branch: trunk, size: 67038
2016-08-19
15:35
minor sqlite module tweaks. file: [e4accc3b55] check-in: [4ece7a7f47] user: stephan branch: trunk, size: 66405
08:02
s/isFinal/final/g file: [357cff4b43] check-in: [4ce3ce3f10] user: stephan branch: s2-op-dotdot, size: 65891
2016-03-17
17:28
added a reminder to self after a backfired hacking attempt. file: [c82a2ec947] check-in: [9e281e4f97] user: stephan branch: trunk, size: 65860
2016-03-08
08:01
accommodated API renaming. file: [5596bc0743] check-in: [277a608978] user: stephan branch: trunk, size: 65602
2016-03-06
10:51
Added another createUDF() form and leave UDF funcs nondeterministic by default (for consistency w/ sqlite defaults). file: [83ae89de6e] check-in: [5d938933e6] user: stephan branch: trunk, size: 65602
04:32
changed how UDFs mark the "final" call, as the previous mechanism turned out to be ambiguous when passing * to the aggregate. file: [7e38b4eef3] check-in: [3b53e57249] user: stephan branch: trunk, size: 63167
04:09
more sqlite module tinkering. file: [4d33896430] check-in: [1c54c590c3] user: stephan branch: trunk, size: 62934
2016-03-05
22:07
Added Tuple support to the Stmt.bind()-related APIs. file: [9a7d80505e] check-in: [25f981d5e1] user: stephan branch: trunk, size: 62871
21:47
minor cleanups in the sqlite3 module. file: [a5ca8fcba1] check-in: [7ce85e1d58] user: stephan branch: trunk, size: 62076
19:28
Added UDF support to the sqlite3 module. file: [4241224cee] check-in: [41fc75d22f] user: stephan branch: trunk, size: 61852
16:40
Added Stmt.stepTuple(). file: [88c9bafa1b] check-in: [7f6b9289f9] user: stephan branch: trunk, size: 51486
16:17
tweaks in the SQLite3 module. file: [389757db9a] check-in: [150d9c8639] user: stephan branch: trunk, size: 50867
15:25
Added: Ported libfossil's s2/sqlite3 binding to a standalone sqlite3 module. Lots of the docs likely still reference fossil. Ignore them. file: [7fef44b1e4] check-in: [fc59b3b63d] user: stephan branch: trunk, size: 49650