Documentation
¶
Overview ¶
Package sql generates SQL schema definitions from a database catalog. It supports multiple SQL dialects including SQLite, MySQL, and PostgreSQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator produces SQL schema files from a database catalog.
type Options ¶
type Options struct {
// Dialect specifies the target SQL dialect.
Dialect Dialect
// EmitIFNotExists controls whether IF NOT EXISTS clauses are generated.
EmitIFNotExists bool
// EmitComments controls whether comments are included in output.
EmitComments bool
}
Options configures the SQL generator.
Click to show internal directories.
Click to hide internal directories.