myparse

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func (p *Parser) ColumnHasReferences(stmt *migrate.Stmt, c1 *schema.Column) (bool, error)

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

func (p *Parser) CreateViewAfter(f migrate.File, old, new string, pos int) (bool, error)

CreateViewAfter checks if a view was created after the position with the given name to a table.

func (*Parser) FixChange added in v0.7.1

func (p *Parser) FixChange(d migrate.Driver, s string, changes schema.Changes) (schema.Changes, error)

FixChange fixes the changes according to the given statement.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL