Documentation ¶
Index ¶
- func NewDataSourceBuilderFactory(primaryKeys []octosql.VariableName) physical.DataSourceBuilderFactory
- func NewDataSourceBuilderFactoryFromConfig(dbConfig map[string]interface{}) (physical.DataSourceBuilderFactory, error)
- type MySQLTemplate
- func (t *MySQLTemplate) GetAvailableFilters() map[physical.FieldType]map[physical.Relation]struct{}
- func (t *MySQLTemplate) GetDSNAndDriverName(user, password, host, dbName string, port int) (string, string)
- func (t *MySQLTemplate) GetIPAddress(dbConfig map[string]interface{}) (string, int, error)
- func (t *MySQLTemplate) GetPlaceholders(alias string) sql.PlaceholderMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSourceBuilderFactory ¶
func NewDataSourceBuilderFactory(primaryKeys []octosql.VariableName) physical.DataSourceBuilderFactory
func NewDataSourceBuilderFactoryFromConfig ¶
func NewDataSourceBuilderFactoryFromConfig(dbConfig map[string]interface{}) (physical.DataSourceBuilderFactory, error)
NewDataSourceBuilderFactoryFromConfig creates a data source builder factory using the configuration.
Types ¶
type MySQLTemplate ¶
type MySQLTemplate struct{}
func (*MySQLTemplate) GetAvailableFilters ¶
func (t *MySQLTemplate) GetAvailableFilters() map[physical.FieldType]map[physical.Relation]struct{}
func (*MySQLTemplate) GetDSNAndDriverName ¶
func (t *MySQLTemplate) GetDSNAndDriverName(user, password, host, dbName string, port int) (string, string)
func (*MySQLTemplate) GetIPAddress ¶
func (t *MySQLTemplate) GetIPAddress(dbConfig map[string]interface{}) (string, int, error)
func (*MySQLTemplate) GetPlaceholders ¶
func (t *MySQLTemplate) GetPlaceholders(alias string) sql.PlaceholderMap
Click to show internal directories.
Click to hide internal directories.