Documentation ¶
Index ¶
- type MySQLParser
- func (p *MySQLParser) Assemble(c MySQLParserConfig) (dbinfo *structs.DBInfo, err error)
- func (p *MySQLParser) Columns(schema string, table *structs.Table, tableName string, ...) ([]structs.Column, error)
- func (p *MySQLParser) ForeignKeyInfo(schema, tableName string) ([]structs.ForeignKey, error)
- func (p *MySQLParser) SetIndexAndKey(tables []*structs.Table) (err error)
- func (p *MySQLParser) TableNames(schema string, whitelist, blacklist []string) ([]string, error)
- func (p *MySQLParser) TranslateColumnType(c structs.Column) structs.Column
- type MySQLParserConfig
- type TableCreateSQL
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) 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 ¶
Click to show internal directories.
Click to hide internal directories.