Expand description
Lookups against the current buffer’s CREATE TABLE statements.
When the cursor sits inside a column declaration of a CREATE TABLE in the buffer being edited, we want a hover card that explains that specific declaration – type, NOT NULL, DEFAULT – even when the live catalog doesn’t know about the table yet (because the user is in the middle of writing it). dsl-parse gives us the parsed shape; we use it here to map the cursor to a column def.
Functions§
- column_
decl_ at - Try to render a column-declaration hover for the cursor position. Returns None when the cursor isn’t inside a column declaration.