database

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 13 Imported by: 0

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)
}

func New

func New(resource string, idx uint8) Database

Jump to

Keyboard shortcuts

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