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 ¶
type Parser struct{}
Parser implements the sqlparse.Parser
func (*Parser) ColumnFilledAfter ¶
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 ¶
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 ¶
ColumnHasReferences checks if the column has an inline REFERENCES clause in the given CREATE or ALTER statement.
func (*Parser) CreateViewAfter ¶
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.