Documentation
¶
Index ¶
- type Analyzer
- type Connector
- func (_m *Connector) Close()
- func (_m *Connector) Connect() error
- func (_m *Connector) GetColumns(tableName string) ([]database.ColumnResult, error)
- func (_m *Connector) GetConstraints(tableName string) ([]database.ConstraintResult, error)
- func (_m *Connector) GetDbType() database.DbType
- func (_m *Connector) GetSchemas() ([]string, error)
- func (_m *Connector) GetTables(schemaName string) ([]string, error)
- type ConnectorFactory
- type Diagram
- type LoadingSpinner
- type MermerdConfig
- func (_m *MermerdConfig) ConnectionString() string
- func (_m *MermerdConfig) ConnectionStringSuggestions() []string
- func (_m *MermerdConfig) EncloseWithMermaidBackticks() bool
- func (_m *MermerdConfig) OutputFileName() string
- func (_m *MermerdConfig) Schema() string
- func (_m *MermerdConfig) SelectedTables() []string
- func (_m *MermerdConfig) ShowAllConstraints() 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 Connector ¶
Connector is an autogenerated mock type for the Connector type
func (*Connector) Close ¶
func (_m *Connector) Close()
Close provides a mock function with given fields:
func (*Connector) GetColumns ¶
func (_m *Connector) GetColumns(tableName string) ([]database.ColumnResult, error)
GetColumns provides a mock function with given fields: tableName
func (*Connector) GetConstraints ¶
func (_m *Connector) GetConstraints(tableName string) ([]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 (*ConnectorFactory) NewConnector ¶
func (_m *ConnectorFactory) NewConnector(connectionString string) (database.Connector, error)
NewConnector provides a mock function with given fields: connectionString
type LoadingSpinner ¶
LoadingSpinner is an autogenerated mock type for the LoadingSpinner type
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 (*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) EncloseWithMermaidBackticks ¶
func (_m *MermerdConfig) EncloseWithMermaidBackticks() bool
EncloseWithMermaidBackticks 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) Schema ¶
func (_m *MermerdConfig) Schema() string
Schema 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) 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 (*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