Documentation
¶
Index ¶
- Variables
- type AST
- func (a AST) Alter() (*types.Alter, error)
- func (a AST) Create() (*types.Create, error)
- func (a AST) Delete() (*types.Delete, error)
- func (a AST) Drop() (*types.Drop, error)
- func (a AST) Insert() (*types.Insert, error)
- func (a AST) Is(s types.Statement) bool
- func (a AST) Select() (*types.Select, error)
- func (a AST) Type() types.Statement
- func (a AST) Update() (*types.Update, error)
- func (a AST) Use() (*types.Use, error)
- type ASTResult
- type ASTs
- type Database
- type ParseResult
- type Parser
- func (p *Parser) Astify(sql string, opt types.Option) (*ASTResult, error)
- func (p *Parser) ColumnList(sql string, opt types.Option) ([]string, error)
- func (p *Parser) Parse(sql string, opt types.Option) (*ParseResult, error)
- func (p *Parser) Sqlify(ast *ASTResult, opt types.Option) (string, error)
- func (p *Parser) TableList(sql string, opt types.Option) ([]string, error)
- func (p *Parser) WhiteListCheck(sql string, whiteList []string, opt types.Option) error
- type TableColumnList
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database string
const ( Athena Database = "athena" BigQuery Database = "bigquery" DB2 Database = "db2" FlinkSQL Database = "flinksql" Hive Database = "hive" MariaDB Database = "mariadb" MySQL Database = "mysql" Noql Database = "noql" PostgreSQL Database = "postgresql" Redshift Database = "redshift" Snowflake Database = "snowflake" Sqlite Database = "sqlite" TransactSQL Database = "transactsql" Trino Database = "trino" )
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ColumnList ¶
columnList(sql: string, opt?: Option): string[];
type TableColumnList ¶
Click to show internal directories.
Click to hide internal directories.