qry

package module
v0.0.0-...-e08bc68 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 3 Imported by: 1

README

Go Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect interface {
	NewParams() Params
	IsReserved(name string) bool
	QueryContext(context.Context, QueryContexter, interface{}) (Rows, error)
	QueryRowContext(context.Context, QueryRowContexter, interface{}) Row
}

type Insertable

type Insertable interface {
	InsertInto() InsertableExpr
}

type InsertableExpr

type InsertableExpr = interface{}

type Marshaler

type Marshaler interface {
	MarshalSql(wr io.Writer, params Params) error
}

type Params

type Params interface {
	Append(v interface{}) (name string)
	Value(name string) (v interface{}, ok bool)
	Values() (values []interface{})
	Names() (names []string)
}

type QueryContexter

type QueryContexter interface {
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
}

type QueryRowContexter

type QueryRowContexter interface {
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Queryable

type Queryable interface {
	From() QueryableExpr
}

type QueryableExpr

type QueryableExpr = interface{}

type Row

type Row interface {
	Scanner
	Err() error
}

type Rows

type Rows interface {
	Scanner
	Err() error
}

type Scannable

type Scannable interface {
	Scan(Scanner) error
}

type Scanner

type Scanner interface {
	Scan(...interface{}) error
}

type Selectable

type Selectable interface {
	Select() []SelectableExpr
}

type SelectableExpr

type SelectableExpr = interface{}

Directories

Path Synopsis
internal
pkg
testutil
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.

Jump to

Keyboard shortcuts

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