New Swift Package adds a window in SwiftUI apps to show database details (including filepath, schema, and the data from rows of tables) for a SQLite database using the #GRDB package/library. Only tested on macOS so far, but probably usable on other platforms. https://gitlab.com/grantneufeld/GRDBDatabaseInspectorUI
This. Querying JSON at full speed in SQLite with virtual columns and indexing. It’s what I do in my iOS podcast app ”Updates”. I love SQLite so much (and #grdb is a great Swift wrapper library).
https://www.dbpro.app/blog/sqlite-json-virtual-columns-indexing
SQLite JSON Superpower: Virtual Columns + Indexing - DB Pro Blog

One of the coolest patterns in SQLite—store raw JSON documents, create virtual generated columns using json_extract, add indexes, and query JSON at full B-tree index speed.

@groue I opened a new discussion here:

https://github.com/groue/GRDB.swift/discussions/1821

Will describe the changes in a couple of parts to make it more manageable to write/read.

#swift #swiftlang #iOSDev #GRDB #Linux

Fixing the build of GRDB on Linux · groue GRDB.swift · Discussion #1821

Hi there, I really like GRDB and the SQLiteData package PointFree has built on top of it and I would like to use them both on Linux. I had already made some quick changes to GRDB to make it work on...

GitHub
Apart from some minor tests that probably fail because of Linux specific things, actually most failures are in the DatabasePoolConcurrencyTests. Need to see whether this also occurs on macOS, and if not see what's causing this on Linux #swift #swiftlang #linux #grdb #sqlite

Fixed the build of GRDB on Linux and now trying to fix the failing tests. More than 400 tests are failing so it was difficult to see which tests were, but luckily I found:

https://github.com/cpisciotta/xcbeautify

#swift #swiftlang #linux #grdb #sqlite

GitHub - cpisciotta/xcbeautify: A little beautifier tool for xcodebuild

A little beautifier tool for xcodebuild. Contribute to cpisciotta/xcbeautify development by creating an account on GitHub.

GitHub

🚀 I've just shipped #GRDB v7.6.1, that fixes a race condition introduced three days ago in v7.6.0: Please upgrade!

Version 7.6 makes it possible to access Task locals from async database accesses. This improves GRDB integration with toolings that rely of Task locals. For example, your tests can now use the #‍expect macro from within an async database access.

Happy birthday, #GRDB! The first recorded commit was on June 30, 2015 🎂

New blog post: Caveats Using Read-only SQLite Databases from the App Bundle

https://twocentstudios.com/2025/06/07/sql-databases-bundle/

A quick debugging story where I learned some new things about SQLite's journal mode while building an database export/import feature for Eki Live.

TLDR:

- Journal mode is embedded in the sqlite database file itself.
- The `backup` command changes the journal mode of the target database to match the source database.
- Check the journal mode of a database with `sqlite3 db.sqlite "PRAGMA journal_mode;"`.
- Change the journal mode of a database with `sqlite3 db.sqlite "PRAGMA journal_mode=DELETE;"`.

#sqlite #grdb

Caveats Using Read-only SQLite Databases from the App Bundle

Just loving the SharingGRDB framework! The @pointfreeco guys really modernized swift persistence: https://github.com/pointfreeco/sharing-grdb

#swift #swiftlang #grdb #sqlite #persistence #iOSDev

GitHub - pointfreeco/sharing-grdb: A lightweight replacement for SwiftData and the Query macro.

A lightweight replacement for SwiftData and the Query macro. - pointfreeco/sharing-grdb

GitHub

Getting a strange linker error with swift on Linux. I'm developing a cli app that uses another SPM package. That package uses GRDB and compiles. When trying to compile the cli app I get a linker error with sqlite3. In the screenshot below it looks like lsqlite3 has been included multiple times for linking? Anyone got an idea?

#swift #swiftlang #linux #GRDB