Documentation ¶
Index ¶
- type DataSource
- func (d *DataSource) DescribeTable(schema string, table string) ([][]*string, error)
- func (d *DataSource) ListSchemas() (schemas []string, err error)
- func (d *DataSource) ListTables(schema string) (tables []string, err error)
- func (d *DataSource) Ping() error
- func (d *DataSource) PreviewTable(schema string, table string) ([][]*string, error)
- func (d *DataSource) Query(schema, query string) ([][]*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶ added in v0.2.0
type DataSource struct {
// contains filtered or unexported fields
}
DataSource implements internal.DataSource interface for PostgreSQL storage.
func New ¶
func New(dsn string) (*DataSource, error)
New configures a new connection to the PostgreSQL data source and returns an instance of it which implements internal.DataSource interface.
func (*DataSource) DescribeTable ¶ added in v0.2.0
func (d *DataSource) DescribeTable(schema string, table string) ([][]*string, error)
DescribeTable exported.
func (*DataSource) ListSchemas ¶ added in v0.2.0
func (d *DataSource) ListSchemas() (schemas []string, err error)
ListSchemas exported.
func (*DataSource) ListTables ¶ added in v0.2.0
func (d *DataSource) ListTables(schema string) (tables []string, err error)
ListTables exported.
func (*DataSource) PreviewTable ¶ added in v0.2.0
func (d *DataSource) PreviewTable(schema string, table string) ([][]*string, error)
PreviewTable exported.
Click to show internal directories.
Click to hide internal directories.