interfaces

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaHeroDatabaseConnection

type SchemaHeroDatabaseConnection interface {
	GetConnection() *sql.Conn
	GetDB() *sql.DB

	DatabaseName() string
	EngineVersion() string

	CheckAlive(string, string) (bool, error)

	ListTables() ([]string, error)
	ListTableForeignKeys(string, string) ([]*types.ForeignKey, error)
	ListTableIndexes(string, string) ([]*types.Index, error)

	GetTablePrimaryKey(string) (*types.KeyConstraint, error)
	GetTableSchema(string) ([]*types.Column, error)
}

Jump to

Keyboard shortcuts

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