Documentation
¶
Index ¶
- func AssetTypeToDialect(assetType pipeline.AssetType) (string, error)
- type ColumnLineage
- type Lineage
- type Parser
- type QueryConfig
- type RustSQLParser
- func (s *RustSQLParser) AddLimit(sql string, limit int, dialect string) (string, error)
- func (s *RustSQLParser) Close() error
- func (s *RustSQLParser) ColumnLineage(sql, dialect string, schema Schema) (*Lineage, error)
- func (s *RustSQLParser) GetMissingDependenciesForAsset(asset *pipeline.Asset, pipeline *pipeline.Pipeline, ...) ([]string, error)
- func (s *RustSQLParser) IsSingleSelectQuery(sql string, dialect string) (bool, error)
- func (s *RustSQLParser) RenameTables(sql string, dialect string, tableMapping map[string]string) (string, error)
- func (s *RustSQLParser) Start() error
- func (s *RustSQLParser) UsedTables(sql, dialect string) ([]string, error)
- type SQLParser
- func (s *SQLParser) AddLimit(sql string, limit int, dialect string) (string, error)
- func (s *SQLParser) Close() error
- func (s *SQLParser) ColumnLineage(sql, dialect string, schema Schema) (*Lineage, error)
- func (s *SQLParser) GetMissingDependenciesForAsset(asset *pipeline.Asset, pipeline *pipeline.Pipeline, ...) ([]string, error)
- func (s *SQLParser) IsSingleSelectQuery(sql string, dialect string) (bool, error)
- func (s *SQLParser) RenameTables(sql string, dialect string, tableMapping map[string]string) (string, error)
- func (s *SQLParser) Start() error
- func (s *SQLParser) UsedTables(sql, dialect string) ([]string, error)
- type Schema
- type UpstreamColumn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnLineage ¶
type ColumnLineage struct {
Name string `json:"name"`
Upstream []UpstreamColumn `json:"upstream"`
Type string `json:"type"`
}
type Lineage ¶
type Lineage struct {
Columns []ColumnLineage `json:"columns"`
NonSelectedColumns []ColumnLineage `json:"non_selected_columns"`
Errors []string `json:"errors"`
}
type Parser ¶ added in v0.11.488
type Parser interface {
Start() error
ColumnLineage(sql, dialect string, schema Schema) (*Lineage, error)
UsedTables(sql, dialect string) ([]string, error)
RenameTables(sql, dialect string, tableMapping map[string]string) (string, error)
AddLimit(sql string, limit int, dialect string) (string, error)
IsSingleSelectQuery(sql string, dialect string) (bool, error)
GetMissingDependenciesForAsset(asset *pipeline.Asset, pipeline *pipeline.Pipeline, renderer jinja.RendererInterface) ([]string, error)
Close() error
}
type QueryConfig ¶
type RustSQLParser ¶ added in v0.11.488
type RustSQLParser struct {
MaxQueryLength int
}
func NewRustSQLParser ¶ added in v0.11.488
func NewRustSQLParser(_ bool) (*RustSQLParser, error)
func NewRustSQLParserWithConfig ¶ added in v0.11.488
func NewRustSQLParserWithConfig(_ bool, maxQueryLength int) (*RustSQLParser, error)
func (*RustSQLParser) Close ¶ added in v0.11.488
func (s *RustSQLParser) Close() error
func (*RustSQLParser) ColumnLineage ¶ added in v0.11.488
func (s *RustSQLParser) ColumnLineage(sql, dialect string, schema Schema) (*Lineage, error)
func (*RustSQLParser) GetMissingDependenciesForAsset ¶ added in v0.11.488
func (s *RustSQLParser) GetMissingDependenciesForAsset(asset *pipeline.Asset, pipeline *pipeline.Pipeline, renderer jinja.RendererInterface) ([]string, error)
func (*RustSQLParser) IsSingleSelectQuery ¶ added in v0.11.488
func (s *RustSQLParser) IsSingleSelectQuery(sql string, dialect string) (bool, error)
func (*RustSQLParser) RenameTables ¶ added in v0.11.488
func (*RustSQLParser) Start ¶ added in v0.11.488
func (s *RustSQLParser) Start() error
func (*RustSQLParser) UsedTables ¶ added in v0.11.488
func (s *RustSQLParser) UsedTables(sql, dialect string) ([]string, error)
type SQLParser ¶
type SQLParser struct {
MaxQueryLength int
// contains filtered or unexported fields
}
func NewSQLParser ¶
func NewSQLParserWithConfig ¶ added in v0.11.241
func (*SQLParser) ColumnLineage ¶
func (*SQLParser) GetMissingDependenciesForAsset ¶ added in v0.11.216
func (*SQLParser) IsSingleSelectQuery ¶ added in v0.11.254
func (*SQLParser) RenameTables ¶ added in v0.11.169
type UpstreamColumn ¶
Click to show internal directories.
Click to hide internal directories.