Documentation ¶
Index ¶
- func NewDataSourceBuilderFactory(primaryKeys []octosql.VariableName) physical.DataSourceBuilderFactory
- func NewDataSourceBuilderFactoryFromConfig(dbConfig map[string]interface{}) (physical.DataSourceBuilderFactory, error)
- type PostgresTemplate
- func (t *PostgresTemplate) GetAvailableFilters() map[physical.FieldType]map[physical.Relation]struct{}
- func (t *PostgresTemplate) GetDSNAndDriverName(user, password, host, dbName string, port int) (string, string)
- func (t *PostgresTemplate) GetIPAddress(dbConfig map[string]interface{}) (string, int, error)
- func (t *PostgresTemplate) 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 PostgresTemplate ¶
type PostgresTemplate struct{}
func (*PostgresTemplate) GetAvailableFilters ¶
func (t *PostgresTemplate) GetAvailableFilters() map[physical.FieldType]map[physical.Relation]struct{}
func (*PostgresTemplate) GetDSNAndDriverName ¶
func (t *PostgresTemplate) GetDSNAndDriverName(user, password, host, dbName string, port int) (string, string)
func (*PostgresTemplate) GetIPAddress ¶
func (t *PostgresTemplate) GetIPAddress(dbConfig map[string]interface{}) (string, int, error)
func (*PostgresTemplate) GetPlaceholders ¶
func (t *PostgresTemplate) GetPlaceholders(alias string) sql.PlaceholderMap
Click to show internal directories.
Click to hide internal directories.