Up to [cvs.NetBSD.org] / pkgsrc / databases / sqlite3-tcl
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
sqlite3: updated to 3.50.2
Prior changes from version 3.50.0 (2025-05-29):
Add the sqlite3_setlk_timeout() interface which sets a separate timeout, distinct from the sqlite3_busy_timeout(), for blocking locks on builds that support blocking locks.
The SQLITE_DBCONFIG_ENABLE_COMMENTS constraint (added in the previous release) is relaxed slightly so that comments are always allowed when reading the schema out of a pre-existing sqlite_schema table. Comments are only blocked in new SQL.
New SQL functions:
unistr()
unistr_quote()
For the %Q and %q conversions in the built-in printf() (which covers the sqlite3_mprintf() API and the format() SQL function and similar) the alternate-form-1 flag ("#") causes control characters to be converted into backslash-escapes suitable for unistr().
CLI enhancements:
Avoids direct output of most control characters.
The output of the .dump command makes use of the new unistr() SQL function to encode special characters, unless the --escape mode is set to off.
Better formatting of complex partial indexes in the output from the ".schema --indent" command.
Enhancements to sqlite3_rsync:
The requirement that the database be in WAL mode has been removed.
The sync protocol is enhanced to use less network bandwidth when both sides start out being very similar to one another.
The sqlite3_rsync program now works on Macs without having to specify the full pathname of the sqlite3_rsync executable on the remote side as long as you install the sqlite3_rsync executable in one of these directories: $HOME/bin:/usr/local/bin:/opt/homebrew/bin
Changes to JSON functions:
Bug fix: Enforce the JSON5 restriction that the "\0" escape must not be followed by a digit.
Bug fix: When the LABEL argument to json_group_object(LABEL,VALUE) is NULL, that element of the resulting object is omitted.
Optimization: If the jsonb_set() or jsonb_replace() functions make a change in the interior of a large JSONB object, they strive to keep the size of the JSONB object unchanged and to modify as few bytes as possible on the interior of the object. This helps reduce I/O as it allows SQLite to write only the page that contains the changed bytes and not all the surrounding pages.
Improved support for building on Cygwin and MinGW and similar, as well as Termux.
Typo fixes in the documentation and in the source code comments.
Miscellaneous performance improvements.
JavaScript/WASM:
Fix a long-standing filename digest calculation bug in the OPFS SAHPool VFS. Databases created in that VFS by 3.50.0+ cannot be read by older versions of the VFS, but 3.50.0 can backwards-compatibly work with existing databases created by older versions.
Prior changes from version 3.50.1 (2025-06-06):
Fix a long-standing bug in jsonb_set() and similar that was exposed by new optimizations added in version 3.50.0.
Fix an apparently harmless ASAN warning that can occur on builds that use -DSQLITE_DEFAULT_MEMSTATUS=0.
Fix an off-by-one bug in sqlite3_rsync that can result in the last page not being transferred for the replicate database.
Query planner optimization: Allow the right-hand side of a LEFT JOIN to be flattened even if it is a virtual table.
Fix sqlite3_setlk_timeout() to use a blocking lock when opening a snapshot transaction and when blocked by another process running recovery.
Other minor fixes that were reported after the 3.50.0 release.
Changes in this specific patch release, version 3.50.2 (2025-06-28):
Fix the concat_ws() SQL function so that it includes empty strings in the concatenation. Forum post 52503ac21d.
Fix the file-io extension (used by the CLI) so that it can be built using the MinGW compiler chain.
Avoid writing frames with no checksums into the wal file if a savepoint is rolled back after dirty pages have already been spilled into the wal file. Forum post b490f726db.
Fix the Bitvec object to avoid stack overflow when the database is within 60 pages of its maximum size.
Fix a problem with UPDATEs on fts5 tables that contain BLOB values.
Fix an issue with transitive IS constraints on a RIGHT JOIN.
Raise an error early if the number of aggregate terms in a query exceeds the maximum number of columns, to avoid downstream assertion faults.
Ensure that sqlite3_setlk_timeout() holds the database mutex.
Fix typos in API documentation.
Changes 3.8.3: Added support for common table expressions and the WITH clause. Added the printf() SQL function. Added SQLITE_DETERMINISTIC as an optional bit in the 4th argument to the sqlite3_create_function() and related interfaces, providing applications with the ability to create new functions that can be factored out of inner loops when they have constant arguments. Add SQLITE_READONLY_DBMOVED error code, returned at the beginning of a transaction, to indicate that the underlying database file has been renamed or moved out from under SQLite. Allow arbitrary expressions, including function calls and subqueries, in the filename argument to ATTACH. Allow a VALUES clause to be used anywhere a SELECT statement is valid. Reseed the PRNG used by sqlite3_randomness(N,P) when invoked with N==0. Automatically reseed after a fork() on unix. Enhance the spellfix1 virtual table so that it can search efficiently by rowid. Performance enhancements. Improvements to the comments in the VDBE byte-code display when running EXPLAIN. Add the "%token_class" directive to LEMON parser generator and use it to simplify the grammar. Change the LEMON source code to avoid calling C-library functions that OpenBSD considers dangerous. (Ex: sprintf). Bug fix: In the command-line shell CSV import feature, do not end a field when an escaped double-quote occurs at the end of a CRLN line.
Changes 3.7.0.1: * Fix a potential database corruption problem that can result if the same database file is alternately written by version 3.7.0 and 3.6.23.1. * Fix a possible performance regression caused by the introduction of automatic indexing.
Changes 3.7.0: * Added support for write-ahead logging. * Query planner enhancement - automatic transient indices are created when doing so reduces the estimated query time. * Query planner enhancement - the ORDER BY becomes a no-op if the query also contains a GROUP BY clause that forces the correct output order. * Add the SQLITE_DBSTATUS_CACHE_USED verb for sqlite3_db_status(). * The logical database size is now stored in the database header so that bytes can be appended to the end of the database file without corrupting it and so that SQLite will work correctly on systems that lack support for ftruncate().
Changes 3.6.23: * Added the secure_delete pragma * Added the sqlite3_compileoption_used() and sqlite3_compileoption_get() interfaces as well as the compile_options pragma and the sqlite_compileoption_used() and sqlite_compileoption_get() SQL functions. * Added the sqlite3_log() interface together with the SQLITE_CONFIG_LOG verb to sqlite3_config(). The ".log" command is added to the Command Line Interface * Improvements to FTS3 * Improvements and bug-fixes in support for SQLITE_OMIT_FLOATING_POINT * The integrity_check pragma is enhanced to detect out-of-order rowids * The ".genfkey" operator has been removed from the Command Line Interface * Updates to the co-hosted Lemon LALR(1) parser generator. (These updates did not affect SQLite.) * Various minor bug fixes and performance enhancements
Changes 3.6.22: * Fix bugs that can (rarely) lead to incorrect query results when the CAST or OR operators are used in the WHERE clause of a query. * Continuing enhancements and improvements to FTS3. * Other miscellanous bug fixes.
sync w/ base pkg
Switch to amalgamation style sqlite3 build. This is the recommended way to build sqlite3 according to upstream. It should give a small performance increase due to static inlining, but more importantly lets us avoid manual maintenance of sqlite3.h. Bump revisions for sqlite3 and sqlite3-tcl.
Remove @dirrm entries from PLISTs
Initial import of sqlite3-tcl, version 3.1.3: SQLite is a C library that implements an SQL database engine. Programs that link with the SQLite library can have SQL database access without running a separate RDBMS process. The distribution comes with a standalone command-line access program (sqlite) that can be used to administer an SQLite database and which serves as an example of how to use the SQLite library. SQLite is not a client library used to connect to a big database server. SQLite is the server. The SQLite library reads and writes directly to and from the database files on disk. This package provides the TCL bindings for the SQLite C library.
Initial revision