analyzer

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 11 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)
	GetSchemas(db database.Connector) ([]string, error)
	GetTables(db database.Connector, selectedSchemas []string) ([]database.TableDetail, error)
	GetColumnsAndConstraints(db database.Connector, selectedTables []database.TableDetail) ([]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