analyzer

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	Analyze() (*database.Result, error)

	GetConnectionString() (string, error)
	GetSchema(db database.Connector) (string, error)
	GetTables(db database.Connector, selectedSchema string) ([]string, error)
	GetColumnsAndConstraints(db database.Connector, selectedTables []string) ([]database.TableResult, error)
}

func NewAnalyzer

func NewAnalyzer(config config.MermerdConfig, connectorFactory database.ConnectorFactory, questioner Questioner) Analyzer

type Questioner

type Questioner interface {
	AskConnectionQuestion(suggestions []string) (string, error)
	AskSchemaQuestion(schemas []string) (string, error)
	AskTableQuestion(tables []string) ([]string, error)
}

func NewQuestioner

func NewQuestioner() Questioner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL