postgres

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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