Documentation ¶
Index ¶
- type Analyzer
- func (_m *Analyzer) Analyze() (*database.Result, error)
- func (_m *Analyzer) GetColumnsAndConstraints(db database.Connector, selectedTables []database.TableDetail) ([]database.TableResult, error)
- func (_m *Analyzer) GetConnectionString() (string, error)
- func (_m *Analyzer) GetSchemas(db database.Connector) ([]string, error)
- func (_m *Analyzer) GetTables(db database.Connector, selectedSchemas []string) ([]database.TableDetail, error)
- type Connector
- func (_m *Connector) Close()
- func (_m *Connector) Connect() error
- func (_m *Connector) GetColumns(tableName database.TableDetail) ([]database.ColumnResult, error)
- func (_m *Connector) GetConstraints(tableName database.TableDetail) ([]database.ConstraintResult, error)
- func (_m *Connector) GetDbType() database.DbType
- func (_m *Connector) GetSchemas() ([]string, error)
- func (_m *Connector) GetTables(schemaNames []string) ([]database.TableDetail, error)
- type ConnectorFactory
- type Diagram
- type LoadingSpinner
- type MermerdConfig
- func (_m *MermerdConfig) ConnectionString() string
- func (_m *MermerdConfig) ConnectionStringSuggestions() []string
- func (_m *MermerdConfig) Debug() bool
- func (_m *MermerdConfig) EncloseWithMermaidBackticks() bool
- func (_m *MermerdConfig) OmitAttributeKeys() bool
- func (_m *MermerdConfig) OmitConstraintLabels() bool
- func (_m *MermerdConfig) OutputFileName() string
- func (_m *MermerdConfig) SchemaPrefixSeparator() string
- func (_m *MermerdConfig) Schemas() []string
- func (_m *MermerdConfig) SelectedTables() []string
- func (_m *MermerdConfig) ShowAllConstraints() bool
- func (_m *MermerdConfig) ShowDescriptions() []string
- func (_m *MermerdConfig) ShowSchemaPrefix() bool
- func (_m *MermerdConfig) UseAllSchemas() bool
- func (_m *MermerdConfig) UseAllTables() bool
- type Questioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
Analyzer is an autogenerated mock type for the Analyzer type
func NewAnalyzer ¶
func NewAnalyzer(t mockConstructorTestingTNewAnalyzer) *Analyzer
NewAnalyzer creates a new instance of Analyzer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Analyzer) GetColumnsAndConstraints ¶
func (_m *Analyzer) GetColumnsAndConstraints(db database.Connector, selectedTables []database.TableDetail) ([]database.TableResult, error)
GetColumnsAndConstraints provides a mock function with given fields: db, selectedTables
func (*Analyzer) GetConnectionString ¶
GetConnectionString provides a mock function with given fields:
func (*Analyzer) GetSchemas ¶
GetSchemas provides a mock function with given fields: db
type Connector ¶
Connector is an autogenerated mock type for the Connector type
func NewConnector ¶
func NewConnector(t mockConstructorTestingTNewConnector) *Connector
NewConnector creates a new instance of Connector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Connector) Close ¶
func (_m *Connector) Close()
Close provides a mock function with given fields:
func (*Connector) GetColumns ¶
func (_m *Connector) GetColumns(tableName database.TableDetail) ([]database.ColumnResult, error)
GetColumns provides a mock function with given fields: tableName
func (*Connector) GetConstraints ¶
func (_m *Connector) GetConstraints(tableName database.TableDetail) ([]database.ConstraintResult, error)
GetConstraints provides a mock function with given fields: tableName
func (*Connector) GetSchemas ¶
GetSchemas provides a mock function with given fields:
type ConnectorFactory ¶
ConnectorFactory is an autogenerated mock type for the ConnectorFactory type
func NewConnectorFactory ¶
func NewConnectorFactory(t mockConstructorTestingTNewConnectorFactory) *ConnectorFactory
NewConnectorFactory creates a new instance of ConnectorFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConnectorFactory) NewConnector ¶
func (_m *ConnectorFactory) NewConnector(connectionString string) (database.Connector, error)
NewConnector provides a mock function with given fields: connectionString
type Diagram ¶
Diagram is an autogenerated mock type for the Diagram type
func NewDiagram ¶
func NewDiagram(t mockConstructorTestingTNewDiagram) *Diagram
NewDiagram creates a new instance of Diagram. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type LoadingSpinner ¶
LoadingSpinner is an autogenerated mock type for the LoadingSpinner type
func NewLoadingSpinner ¶
func NewLoadingSpinner(t mockConstructorTestingTNewLoadingSpinner) *LoadingSpinner
NewLoadingSpinner creates a new instance of LoadingSpinner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LoadingSpinner) Start ¶
func (_m *LoadingSpinner) Start(text string)
Start provides a mock function with given fields: text
func (*LoadingSpinner) Stop ¶
func (_m *LoadingSpinner) Stop()
Stop provides a mock function with given fields:
type MermerdConfig ¶
MermerdConfig is an autogenerated mock type for the MermerdConfig type
func NewMermerdConfig ¶
func NewMermerdConfig(t mockConstructorTestingTNewMermerdConfig) *MermerdConfig
NewMermerdConfig creates a new instance of MermerdConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MermerdConfig) ConnectionString ¶
func (_m *MermerdConfig) ConnectionString() string
ConnectionString provides a mock function with given fields:
func (*MermerdConfig) ConnectionStringSuggestions ¶
func (_m *MermerdConfig) ConnectionStringSuggestions() []string
ConnectionStringSuggestions provides a mock function with given fields:
func (*MermerdConfig) Debug ¶
func (_m *MermerdConfig) Debug() bool
Debug provides a mock function with given fields:
func (*MermerdConfig) EncloseWithMermaidBackticks ¶
func (_m *MermerdConfig) EncloseWithMermaidBackticks() bool
EncloseWithMermaidBackticks provides a mock function with given fields:
func (*MermerdConfig) OmitAttributeKeys ¶
func (_m *MermerdConfig) OmitAttributeKeys() bool
OmitAttributeKeys provides a mock function with given fields:
func (*MermerdConfig) OmitConstraintLabels ¶
func (_m *MermerdConfig) OmitConstraintLabels() bool
OmitConstraintLabels provides a mock function with given fields:
func (*MermerdConfig) OutputFileName ¶
func (_m *MermerdConfig) OutputFileName() string
OutputFileName provides a mock function with given fields:
func (*MermerdConfig) SchemaPrefixSeparator ¶
func (_m *MermerdConfig) SchemaPrefixSeparator() string
SchemaPrefixSeparator provides a mock function with given fields:
func (*MermerdConfig) Schemas ¶
func (_m *MermerdConfig) Schemas() []string
Schemas provides a mock function with given fields:
func (*MermerdConfig) SelectedTables ¶
func (_m *MermerdConfig) SelectedTables() []string
SelectedTables provides a mock function with given fields:
func (*MermerdConfig) ShowAllConstraints ¶
func (_m *MermerdConfig) ShowAllConstraints() bool
ShowAllConstraints provides a mock function with given fields:
func (*MermerdConfig) ShowDescriptions ¶
func (_m *MermerdConfig) ShowDescriptions() []string
ShowDescriptions provides a mock function with given fields:
func (*MermerdConfig) ShowSchemaPrefix ¶
func (_m *MermerdConfig) ShowSchemaPrefix() bool
ShowSchemaPrefix provides a mock function with given fields:
func (*MermerdConfig) UseAllSchemas ¶
func (_m *MermerdConfig) UseAllSchemas() bool
UseAllSchemas provides a mock function with given fields:
func (*MermerdConfig) UseAllTables ¶
func (_m *MermerdConfig) UseAllTables() bool
UseAllTables provides a mock function with given fields:
type Questioner ¶
Questioner is an autogenerated mock type for the Questioner type
func NewQuestioner ¶
func NewQuestioner(t mockConstructorTestingTNewQuestioner) *Questioner
NewQuestioner creates a new instance of Questioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Questioner) AskConnectionQuestion ¶
func (_m *Questioner) AskConnectionQuestion(suggestions []string) (string, error)
AskConnectionQuestion provides a mock function with given fields: suggestions
func (*Questioner) AskSchemaQuestion ¶
func (_m *Questioner) AskSchemaQuestion(schemas []string) ([]string, error)
AskSchemaQuestion provides a mock function with given fields: schemas
func (*Questioner) AskTableQuestion ¶
func (_m *Questioner) AskTableQuestion(tables []string) ([]string, error)
AskTableQuestion provides a mock function with given fields: tables