SQLite Adds Zipfile Support |
Written by Kay Ewbank | |||
Thursday, 25 January 2018 | |||
There's a new version of SQLIte with support for Zip files, an improved query planner, and a sqlite_btreeinfo virtual table.
SQLite is an in-process library that implements a self-contained, serverless, transactional SQL database engine. The entire SQL database with multiple tables, indexes, triggers, and views, is contained in a single disk file. The most interesting change to the new release is the ability of the Zipfile virtual table to read and write directly to a ZIP Archive. The zipfile module provides two similar interfaces for accessing zip archives. There's a table-valued function, which provides read-only access to existing archives, and a virtual table interface, which provides both read and write access. You can add files to an existing zip archive by inserting new rows, and edit or delete existing files using UPDATE and DELETE. SQLite has also added the ability to read from WAL mode databases even if the application lacks write permission on the database and its containing directory. Another improvement is the addition of Append VFS. This is a virtual file system shim that allows a SQLite database to be appended to some other file. The release notes say that a typical use for Append VFS would be to append a database to an executable that then opens and reads the database. The query planner is another area to have been improved, firstly by extending the optimization that uses an index to quickly compute an aggregate min() or max() so that it now works with indexes on expressions. The second way the query planner has been improved is by avoiding query plans that use indexes with unknown collating functions. Another improvement means the planner now omits unused left joins, even if they are not the right-most joins of a query. Finally, when deciding whether to implement a FROM-clause subquery as a co-routine, or to use query flattening instead, the query planner now considers whether the result set of the outer query is "complex". The result set is considered complex if it contains functions or expression subqueries, and in that case the decision on which option to choose will be biased towards the use of co-routines. The command-line shell has received a number of improvements, including the addition of support for reading and writing SQL Archive files using the .archive command; and various new commands including the edit() SQL function, and a .excel command to simplify exporting database content to a spreadsheet.
|
Arduino UNO Q Takes On Raspberry Pi 08/10/2025 Arduino has just been taken over by Qualcomm, a company generally known for its many patent disputes as well as its ARM processors. More importantly, a new Arduino has just been announced that could b [ ... ] |
Apache Daffodil 4 Adds New API 09/10/2025 Apache Daffodil 4 has been released. This is a major upgrade that has moved to depending on Scala 3, Java 17 or newer. The new version also includes a new backwards incompatible validation API. |
More News
|
Comments
or email your comment to: comments@i-programmer.info