sql_parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Migration element.Migration
	// contains filtered or unexported fields
}

Parser ...

func NewParser

func NewParser(isPostgres, isLower bool) *Parser

NewParser ...

func (*Parser) Diff

func (p *Parser) Diff(old Parser)

Diff differ between 2 migrations

func (*Parser) Enter

func (p *Parser) Enter(in ast.Node) (ast.Node, bool)

Enter ...

func (*Parser) HashValue

func (p *Parser) HashValue() int64

HashValue ...

func (*Parser) Leave

func (p *Parser) Leave(in ast.Node) (ast.Node, bool)

Leave ...

func (Parser) MigrationDown

func (p Parser) MigrationDown() string

MigrationDown migration down

func (Parser) MigrationUp

func (p Parser) MigrationUp() string

MigrationUp migration up

func (*Parser) Parser

func (p *Parser) Parser(sql string) error

Parser ...

func (*Parser) ParserMysql

func (p *Parser) ParserMysql(sql string) error

ParserMysql ...

func (*Parser) ParserPostgresql

func (p *Parser) ParserPostgresql(sql string) error

ParserPostgresql ...

Jump to

Keyboard shortcuts

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