Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶ added in v0.7.1
type Parser interface { // FixChange fixes the changes according to the given statement. FixChange(d migrate.Driver, stmt string, changes schema.Changes) (schema.Changes, error) // ColumnFilledBefore checks if the column was filled with values before the given position // in the file. For example: // // UPDATE <table> SET <column> = <value> // UPDATE <table> SET <column> = <value> WHERE <column> IS NULL // ColumnFilledBefore(migrate.File, *schema.Table, *schema.Column, int) (bool, error) }
A Parser represents an SQL file parser used to fix, search and enrich schema.Changes.
Directories ¶
Path | Synopsis |
---|---|
Package parseutil exposes shared functions used by the different parsers.
|
Package parseutil exposes shared functions used by the different parsers. |
Click to show internal directories.
Click to hide internal directories.