mysqlparser

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLParser

type MySQLParser struct {
	// contains filtered or unexported fields
}

func (*MySQLParser) Assemble

func (p *MySQLParser) Assemble(c MySQLParserConfig) (dbinfo *structs.DBInfo, err error)

func (*MySQLParser) Columns

func (p *MySQLParser) Columns(schema string, table *structs.Table, tableName string, whitelist, blacklist []string) ([]structs.Column, error)

func (*MySQLParser) ForeignKeyInfo

func (p *MySQLParser) ForeignKeyInfo(schema, tableName string) ([]structs.ForeignKey, error)

func (*MySQLParser) SetIndexAndKey

func (p *MySQLParser) SetIndexAndKey(tables []*structs.Table) (err error)

func (*MySQLParser) TableNames

func (p *MySQLParser) TableNames(schema string, whitelist, blacklist []string) ([]string, error)

func (*MySQLParser) TranslateColumnType

func (p *MySQLParser) TranslateColumnType(c structs.Column) structs.Column

type MySQLParserConfig

type MySQLParserConfig struct {
	DbName          string
	TableCreateSQLs []TableCreateSQL
}

type TableCreateSQL

type TableCreateSQL struct {
	Table     string
	CreateSQL string
}

Jump to

Keyboard shortcuts

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