Documentation
¶
Overview ¶
This package has database database layer. Never deal with DDL construction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransactionSupported ¶
Types ¶
type DDLStatement ¶
A tuple of an original DDL and a Statement
type Database ¶
type Database interface {
DumpDDLs() (string, error)
DB() *sql.DB
Close() error
GetDefaultSchema() string
}
Abstraction layer for multiple kinds of databases
type GeneratorConfig ¶
func ParseGeneratorConfig ¶
func ParseGeneratorConfig(configFile string) GeneratorConfig
type GenericParser ¶
type GenericParser struct {
// contains filtered or unexported fields
}
func NewParser ¶
func NewParser(mode parser.ParserMode) GenericParser
func (GenericParser) Parse ¶
func (p GenericParser) Parse(sql string) ([]DDLStatement, error)
type Parser ¶
type Parser interface {
Parse(sql string) ([]DDLStatement, error)
}
Click to show internal directories.
Click to hide internal directories.