Skip to main content

Module sql

Module sql 

Source
Expand description

Structural extraction for SQL.

SQL declares objects rather than functions and depends on other objects by name rather than by path, so the fact shapes mean something slightly different here: a CREATE is a declaration, and every table a statement reads or writes is an import whose specifier is the object name. That is what makes a view resolvable to the file that creates the table it selects from, which is the edge repository intelligence actually wants.

Keywords are matched case-insensitively because SQL is written both ways, often in the same file.

Functionsยง

extract
Extracts structural facts from one SQL source.