Swift Inspection
Inspection
Inspection is about making generated schema and SQL behavior visible while you iterate.
For Swift, enable debug generation in SQLiteNow.json when you need to inspect
the compiler’s file-backed schema database:
{
"schemaVersion": 1,
"databases": [
{
"databaseName": "AppDatabase",
"swiftPackageName": "AppDatabaseSQLiteNow",
"swiftTargetName": "AppDatabaseSQLiteNow",
"runtime": "core",
"debug": true
}
]
}
The plugin writes the inspected schema database under .build/sqlitenow/schema/.
Open that file with a SQLite client to inspect tables, indexes, views, and
inferred schema state.