Repository navigation
v0.44.0
SQLite is now an engine of its own: open a database file, browse its schema, run statements page by page, filter, count and export tables, edit rows, and see query plans. Based on work by @fsmw in #296.
Added
- SQLite files: a profile with
driver = "sqlite"and the absolutepathof an existing
database file connects to it and runs statements, its results read page by page. datarig
never creates the file, and a read-only profile opens it read-only. - SQLite profiles in the connection form: pick SQLite as the driver and give the database
file's path in place of a server's host, port, user and password (no SSH or TLS settings).
The form refuses a path that is not absolute, afile:name, and, on Linux and macOS, a path
longer than SQLite opens (504 bytes); the explorer shows SQLite's icon, and a test connection
says "local file". - SQLite schema tree: the explorer shows a file's
mainschema with its tables and views
(SQLite's ownsqlite_tables left out), each table's columns, primary and foreign keys,
indexes, unique and check constraints and triggers, key marks on columns, and completion of
its names. The DDL view shows an object'sCREATEtext as the file keeps it, a table's with
its indexes and triggers. - SQLite: a result with more rows than a page lets the file go once its first page is read,
so other programs may write to the file while you look at it; the next page runs the
statement again. A result held open, or read inside your own transaction, keeps the file
until it is read to its end. - SQLite tables: the filter bar, the filter dialog, filter by value, value counts, the row
count and export work on SQLite. A table keyed by whole numbers or text is exported in
chunks by its key, so the file is not held while the export is written. A pattern that
ignores case takes only ASCII letters with a case, as SQLite folds no others. - SQLite: a result's rows can be edited, deleted and added, and the changes applied in one
transaction that holds the file for writing from its start. A row is found by its table's
primary key (anINTEGER PRIMARY KEYtoo), a unique key ofNOT NULLcolumns, or its values,
never by the rowid; a row another program changed since it was read, or a file another program
holds, writes nothing. A value SQLite shows the same as a value of another kind (0x…of bytes
and of text,Infof a float and of text) never finds a row, and is not copied as SQL. - SQLite plans: the plan action asks SQLite for
EXPLAIN QUERY PLANof the statement, which
never runs it, and shows its steps as a tree, as thesqlite3shell draws them. SQLite gives
no cost, row estimate or time, so the plan shows its steps only (Tree, Boxes and Raw), the plan
withANALYZEis refused, and a filtered table offers the exact count but no estimate. A typed
EXPLAIN QUERY PLANis shown as a plan too.
The archives are for macOS and Linux (arm64 and x86_64) and Windows (x86_64); SHA256SUMS lists their checksums. The Windows build is untested: CI builds it and runs its tests, but nobody has used datarig on Windows yet.
What's Changed
- chore(deps): curve25519-dalek 5.1.0 (RUSTSEC-2026-0620) by @DokaDev in #622
- build(deps): rusqlite with SQLite compiled in, its notices and licence checks by @DokaDev in #617
- feat(core): read SQLite text: lexer, splitter and quoting, not yet used by @DokaDev in #618
- feat(core): judge SQLite statements, not yet used by @DokaDev in #619
- feat(core, tui): SQLite in the engine registry, refused until its driver connects by @DokaDev in #623
- feat(drivers): open a SQLite file and run statements by @DokaDev in #624
- feat(drivers): page SQLite results and release the file between pages by @DokaDev in #626
- feat(core, tui): SQLite profiles: a file path, the form row and the icon by @DokaDev in #627
- feat(drivers): the SQLite schema tree, keys, structure and DDL by @DokaDev in #628
- feat(core, drivers): filter, count and export SQLite tables by @DokaDev in #629
- feat(core, drivers): edit a result's rows on SQLite by @DokaDev in #630
- feat(core, drivers): SQLite query plans by @DokaDev in #634
- docs: what datarig does on SQLite, kept by a test by @DokaDev in #635
- chore(release): 0.44.0 by @DokaDev in #636
Full Changelog: v0.43.0...v0.44.0