On this page

Glossary

TermMeaning
DialectThe SQL grammar, types, functions and capabilities the analyser understands.
DriverThe database client used by generated code or the migration CLI.
EmitterThe component that writes Go for a particular driver API.
MigrationA versioned schema change, normally with up and down SQL.
CatalogueSeagull's in-memory description of tables, columns, views, types and functions.
QueryOne named SQL statement with an sgl.query header.
DirectiveA SQL comment carrying generation or migration metadata.
DiagnosticA located message with severity and a stable Q-code.
PresetAn embedder's vocabulary and type choices for generation.
ModelThe struct models.go declares for a table, with a field per column.
Row structThe struct a query's rows are read into: <Name>Row by default, or a model or a shared row type a model: or row: keyword names.
Type slotThe Go type one category of SQL values maps to, such as decimals or intervals, set under go.types or in a preset.
Type overrideA Go type, element nullability or struct tags chosen for one SQL type or one column, in sgl.yaml or a sgl.column directive.

A schema source builds a catalogue without migration replay. Introspection is a schema source that reads a database. A generated header identifies output that the writer owns and may prune. A dirty migration is an interrupted run whose recorded progress needs evaluation before resuming.