Documentation ¶
Overview ¶
Package parseutil exposes shared functions used by the different parsers.
Index ¶
- func MatchStmtAfter(f migrate.File, pos int, p func(*migrate.Stmt) (bool, error)) (bool, error)
- func MatchStmtBefore(f migrate.File, pos int, p func(*migrate.Stmt) (bool, error)) (bool, error)
- func RenameColumn(modify *schema.ModifyTable, r *Rename)
- func RenameIndex(modify *schema.ModifyTable, r *Rename)
- func RenameTable(changes schema.Changes, r *Rename) schema.Changes
- type Rename
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchStmtAfter ¶ added in v0.10.0
MatchStmtAfter reports if the file contains any statement that matches the predicate after the given position.
func MatchStmtBefore ¶
MatchStmtBefore reports if the file contains any statement that matches the predicate before the given position.
func RenameColumn ¶
func RenameColumn(modify *schema.ModifyTable, r *Rename)
RenameColumn patches DROP/ADD column commands to RENAME.
func RenameIndex ¶
func RenameIndex(modify *schema.ModifyTable, r *Rename)
RenameIndex patches DROP/ADD index commands to RENAME.
Types ¶
Click to show internal directories.
Click to hide internal directories.