Documentation ¶
Index ¶
- type Parser
- func (p *Parser) ColumnFilledAfter(f migrate.File, t *schema.Table, c *schema.Column, pos int, match any) (bool, error)
- func (p *Parser) ColumnFilledBefore(f migrate.File, t *schema.Table, c *schema.Column, pos int) (bool, error)
- func (p *Parser) ColumnHasReferences(stmt *migrate.Stmt, c1 *schema.Column) (bool, error)
- func (p *Parser) CreateViewAfter(f migrate.File, old, new string, pos int) (bool, error)
- func (p *Parser) FixChange(d migrate.Driver, s string, changes schema.Changes) (schema.Changes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶ added in v0.7.1
type Parser struct{}
Parser implements the sqlparse.Parser
func (*Parser) ColumnFilledAfter ¶ added in v0.8.1
func (p *Parser) ColumnFilledAfter(f migrate.File, t *schema.Table, c *schema.Column, pos int, match any) (bool, error)
ColumnFilledAfter checks if the column that matches the given value was filled after the position.
func (*Parser) ColumnFilledBefore ¶ added in v0.7.1
func (p *Parser) ColumnFilledBefore(f migrate.File, t *schema.Table, c *schema.Column, pos int) (bool, error)
ColumnFilledBefore checks if the column was filled before the given position.
func (*Parser) ColumnHasReferences ¶ added in v0.8.2
ColumnHasReferences checks if the column has an inline REFERENCES clause in the given CREATE or ALTER statement.
func (*Parser) CreateViewAfter ¶ added in v0.10.0
CreateViewAfter checks if a view was created after the position with the given name to a table.
Click to show internal directories.
Click to hide internal directories.