Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { Storage // contains filtered or unexported fields }
Engine is responsible for sql related read operations.
func (*Engine) FormatColumn ¶
FormatColumn returns a escaped table+column string
func (*Engine) GetColumns ¶
GetColumns returns the columns in the specified database table
type Storage ¶
type Storage interface { // GetStructure returns the SQL used to create the database tables GetStructure() (string, error) // GetTables return a list of all database tables GetTables() ([]string, error) // GetColumns return a list of all columns for a given table GetColumns(string) ([]string, error) // QuoteIdentifier returns a quoted instance of a identifier (table, column etc.) QuoteIdentifier(string) string // Conn return the sql.DB connection Conn() *sql.DB // Close closes the reader resources and releases them. Close() error }
Storage is the read storage database interface.
Click to show internal directories.
Click to hide internal directories.