query

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Data = &data{}
View Source
var Postgresql = NewPostgresqlQuery()
View Source
var Sqlite = NewSqliteQuery()

Functions

This section is empty.

Types

type Results

type Results interface {
	Next() bool
	Scan(dest ...interface{}) error
}

Results is sql.Rows wrapper. Introduced to facilitate testing.

type Schema

type Schema interface {
	// All returns a query selecting all tables names and schemas.
	All() string
	// One returns a query selecting given table schema.
	One(name string) string
	// Excluded returns a query selecting names of all tables except excluded.
	Excluded(names []string) string
}

Schema provides database tables names and schemas queries.

func NewPostgresqlQuery

func NewPostgresqlQuery() Schema

func NewSqliteQuery

func NewSqliteQuery() Schema

Jump to

Keyboard shortcuts

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