Documentation
¶
Index ¶
Constants ¶
View Source
const ( Postgresql = "postgres" Sqlite = "sqlite" )
View Source
const DriverPostgresql = "postgres"
View Source
const DriverSqlite = "sqlite"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
GetType() string
GetTables(ctx context.Context) (<-chan table.Table, <-chan error)
GetTableNames(excluded []string) ([]string, []string, error)
GetTable(name string) (table.Table, error)
GetTableRowsAll(t table.Table) (<-chan row.Row, <-chan error, error)
GetTableRowsExcluding(t table.Table, keys []string) (<-chan row.Row, <-chan error, error)
GetTableRow(t table.Table, key string) (row.Row, error)
}
Click to show internal directories.
Click to hide internal directories.