Documentation ¶
Index ¶
- Constants
- type Db2Dialect
- type Db2ExtractorFactory
- type Dialect
- type HTTPExtractor
- type HTTPExtractorFactory
- type MockDialect
- type OracleDialect
- type OracleExtractorFactory
- type PostgresDialect
- type PostgresExtractorFactory
- type SQLExtractor
- type YAMLRelation
- type YAMLStorage
- type YAMLStructure
- type YAMLTable
Constants ¶
const Version string = "v1"
Version of the YAML strcuture.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db2Dialect ¶ added in v1.4.0
type Db2Dialect struct{}
func (Db2Dialect) SQL ¶ added in v1.4.0
func (d Db2Dialect) SQL(schema string) string
type Db2ExtractorFactory ¶ added in v1.4.0
type Db2ExtractorFactory struct{}
Db2ExtractorFactory exposes methods to create new Db2 extractors.
func NewDb2ExtractorFactory ¶ added in v1.4.0
func NewDb2ExtractorFactory() *Db2ExtractorFactory
NewDb2ExtractorFactory creates a new db2 extractor factory.
type HTTPExtractor ¶ added in v1.7.0
type HTTPExtractor struct {
// contains filtered or unexported fields
}
HTTPExtractor provides table extraction logic from an HTTP Rest Endpoint.
func NewHTTPExtractor ¶ added in v1.7.0
func NewHTTPExtractor(url string, schema string) *HTTPExtractor
NewHTTPExtractor creates a new HTTP extractor.
type HTTPExtractorFactory ¶ added in v1.7.0
type HTTPExtractorFactory struct{}
HTTPExtractorFactory exposes methods to create new HTTP extractors.
func NewHTTPExtractorFactory ¶ added in v1.7.0
func NewHTTPExtractorFactory() *HTTPExtractorFactory
NewHTTPExtractorFactory creates a new HTTP extractor factory.
type MockDialect ¶
MockDialect is an autogenerated mock type for the Dialect type
func (*MockDialect) SQL ¶
func (_m *MockDialect) SQL(schema string) string
SQL provides a mock function with given fields: schema
type OracleDialect ¶
type OracleDialect struct{}
func (OracleDialect) SQL ¶
func (d OracleDialect) SQL(schema string) string
type OracleExtractorFactory ¶
type OracleExtractorFactory struct{}
OracleExtractorFactory exposes methods to create new Oracle extractors.
func NewOracleExtractorFactory ¶
func NewOracleExtractorFactory() *OracleExtractorFactory
NewOracleExtractorFactory creates a new oracle extractor factory.
type PostgresDialect ¶
type PostgresDialect struct{}
func (PostgresDialect) SQL ¶
func (d PostgresDialect) SQL(schema string) string
type PostgresExtractorFactory ¶
type PostgresExtractorFactory struct{}
PostgresExtractorFactory exposes methods to create new Postgres extractors.
func NewPostgresExtractorFactory ¶
func NewPostgresExtractorFactory() *PostgresExtractorFactory
NewPostgresExtractorFactory creates a new postgres extractor factory.
type SQLExtractor ¶
type SQLExtractor struct {
// contains filtered or unexported fields
}
SQLExtractor provides relation extraction logic from SQL database.
func NewSQLExtractor ¶
func NewSQLExtractor(url string, schema string, dialect Dialect) *SQLExtractor
NewSQLExtractor creates a new SQL extractor.
type YAMLRelation ¶
type YAMLRelation struct { Name string `yaml:"name"` Parent YAMLTable `yaml:"parent"` Child YAMLTable `yaml:"child"` }
YAMLRelation defines how to store a relation in YAML format.
type YAMLStorage ¶
type YAMLStorage struct{}
YAMLStorage provides storage in a local YAML file
type YAMLStructure ¶
type YAMLStructure struct { Version string `yaml:"version"` Relations []YAMLRelation `yaml:"relations,omitempty"` }
YAMLStructure of the file.