Queries next to the database type. The extension reads selectFrom, insertInto, updateTable, and deleteFrom, then checks the table against the type you passed to Kysely<...>.
What you can do
See every query in the Kysely sidebar. Click one to open it.
A warning appears when the table is not a key of that type.
The CodeLens jumps from the query to the table on the interface.
person as p and public.person are read as person.
Snippet: kyselyselect.
It stays quiet until a package.json in the workspace depends on kysely. Nothing is sent out of the editor.
Settings
Setting
Default
kysely.codeLens
on
Links a query to its table.
kysely.diagnostics
on
Warns when the table is missing from the Kysely type.
Commands
Open the Command Palette and type Kysely.
Kysely: Refresh — rescan after adding the dependency.