Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
func NewDataSource ¶
func NewDataSource(source string) (ds *DataSource, err error)
func (*DataSource) Close ¶
func (ds *DataSource) Close()
Close closes the connection to the data source
func (*DataSource) CreateDBIfNotExist ¶
func (ds *DataSource) CreateDBIfNotExist() error
func (*DataSource) Query ¶
func (ds *DataSource) Query(input Input) (qr QueryResult, err error)
func (*DataSource) Tables ¶
func (ds *DataSource) Tables() (names []string, err error)
Tables returns the names of the available tables in the data source
type DataSources ¶
type DataSources map[string]*DataSource
func NewDataSources ¶
func NewDataSources(sources []string) (dataSources DataSources, err error)
func (DataSources) Close ¶
func (dataSources DataSources) Close()
type Dialect ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) ConnectionString ¶
func (*MySQL) DriverName ¶
func (*MySQL) ExtractCellInfo ¶
func (*MySQL) TablesQuery ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) ConnectionString ¶
func (*Postgres) DriverName ¶
func (*Postgres) ExtractCellInfo ¶
func (*Postgres) TablesQuery ¶
type QueryResult ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.