Documentation ¶
Index ¶
- type DataSource
- func (d *DataSource) DescribeTable(_, table string) ([][]*string, error)
- func (d *DataSource) ListSchemas() ([]string, error)
- func (d *DataSource) ListTables(_ string) ([]string, error)
- func (d *DataSource) Ping() error
- func (d *DataSource) PreviewTable(_, table string) ([][]*string, error)
- func (d *DataSource) Query(_, query string) ([][]*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
DataSource wraps a SQLite DataSource.
func (*DataSource) DescribeTable ¶
func (d *DataSource) DescribeTable(_, table string) ([][]*string, error)
DescribeTable describes table.
func (*DataSource) ListSchemas ¶
func (d *DataSource) ListSchemas() ([]string, error)
ListSchemas returns available schemas.
func (*DataSource) ListTables ¶
func (d *DataSource) ListTables(_ string) ([]string, error)
ListTables lists available tables in the database.
func (*DataSource) PreviewTable ¶
func (d *DataSource) PreviewTable(_, table string) ([][]*string, error)
PreviewTable returns first 10 row from given table.
Click to show internal directories.
Click to hide internal directories.