q

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

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 9 Imported by: 0

README

Go Reference

Documentation

Index

Constants

View Source
const Null util.V = "NULL"

Variables

This section is empty.

Functions

func Marshal

func Marshal(wr io.Writer, args *params.Args, v interface{}) error

func QueryContext

func QueryContext(ctx context.Context, qc QueryContexter, q interface{}) (*sql.Rows, error)

Types

type Add

type Add struct {
	Left  interface{}
	Right interface{}
}

func (Add) MarshalSql

func (a Add) MarshalSql(wr io.Writer, args *params.Args) error

type And

type And struct {
	Left  interface{}
	Right interface{}
}

func (And) MarshalSql

func (and And) MarshalSql(wr io.Writer, args *params.Args) error

type As

type As struct {
	Expr  interface{}
	Alias Id
}

func (As) MarshalSql

func (as As) MarshalSql(wr io.Writer, args *params.Args) error

type Between

type Between struct {
	Operand interface{}
	Low     interface{}
	High    interface{}
}

func (Between) MarshalSql

func (b Between) MarshalSql(wr io.Writer, args *params.Args) error

type BetweenSymmetric

type BetweenSymmetric struct {
	Operand interface{}
	Low     interface{}
	High    interface{}
}

func (BetweenSymmetric) MarshalSql

func (b BetweenSymmetric) MarshalSql(wr io.Writer, args *params.Args) error

type Divide

type Divide struct {
	Left  interface{}
	Right interface{}
}

func (Divide) MarshalSql

func (d Divide) MarshalSql(wr io.Writer, args *params.Args) error

type Equals

type Equals struct {
	Left  interface{}
	Right interface{}
}

func (Equals) MarshalSql

func (e Equals) MarshalSql(wr io.Writer, args *params.Args) error

type From

type From struct {
	Expr FromExpr
}

func (From) MarshalSql

func (from From) MarshalSql(wr io.Writer, args *params.Args) error

type FromExpr

type FromExpr = interface{}

type Fromer

type Fromer interface {
	From() FromExpr
}

type GreaterThan

type GreaterThan struct {
	Left  interface{}
	Right interface{}
}

func (GreaterThan) MarshalSql

func (gte GreaterThan) MarshalSql(wr io.Writer, args *params.Args) error

type GreaterThanOrEqual

type GreaterThanOrEqual struct {
	Left  interface{}
	Right interface{}
}

func (GreaterThanOrEqual) MarshalSql

func (gte GreaterThanOrEqual) MarshalSql(wr io.Writer, args *params.Args) error

type Group

type Group struct {
	Contents interface{}
}

func (Group) MarshalSql

func (p Group) MarshalSql(wr io.Writer, args *params.Args) error

type Id

type Id = util.Verbatim

type Is

type Is struct {
	Left  interface{}
	Right interface{}
}

func (Is) MarshalSql

func (is Is) MarshalSql(wr io.Writer, args *params.Args) error

type IsDistinctFrom

type IsDistinctFrom struct {
	Left  interface{}
	Right interface{}
}

func (IsDistinctFrom) MarshalSql

func (i IsDistinctFrom) MarshalSql(wr io.Writer, args *params.Args) error

type IsNot

type IsNot struct {
	Left  interface{}
	Right interface{}
}

func (IsNot) MarshalSql

func (i IsNot) MarshalSql(wr io.Writer, args *params.Args) error

type IsNotDistinctFrom

type IsNotDistinctFrom struct {
	Left  interface{}
	Right interface{}
}

func (IsNotDistinctFrom) MarshalSql

func (i IsNotDistinctFrom) MarshalSql(wr io.Writer, args *params.Args) error

type IsNotNull

type IsNotNull struct {
	Left interface{}
}

func (IsNotNull) MarshalSql

func (i IsNotNull) MarshalSql(wr io.Writer, args *params.Args) error

func (IsNotNull) Right

func (i IsNotNull) Right() interface{}

type IsNull

type IsNull struct {
	Left interface{}
}

func (IsNull) MarshalSql

func (i IsNull) MarshalSql(wr io.Writer, args *params.Args) error

func (IsNull) Right

func (i IsNull) Right() interface{}

type LessThan

type LessThan struct {
	Left  interface{}
	Right interface{}
}

func (LessThan) MarshalSql

func (lt LessThan) MarshalSql(wr io.Writer, args *params.Args) error

type LessThanOrEqual

type LessThanOrEqual struct {
	Left  interface{}
	Right interface{}
}

func (LessThanOrEqual) MarshalSql

func (lte LessThanOrEqual) MarshalSql(wr io.Writer, args *params.Args) error

type Marshaler

type Marshaler interface {
	MarshalSql(wr io.Writer, args *params.Args) error
}

type Multiply

type Multiply struct {
	Left  interface{}
	Right interface{}
}

func (Multiply) MarshalSql

func (m Multiply) MarshalSql(wr io.Writer, args *params.Args) error

type Not

type Not struct {
	Right interface{}
}

func (Not) MarshalSql

func (not Not) MarshalSql(wr io.Writer, args *params.Args) error

type NotEquals

type NotEquals struct {
	Left  interface{}
	Right interface{}
}

func (NotEquals) MarshalSql

func (ne NotEquals) MarshalSql(wr io.Writer, args *params.Args) error

type Or

type Or struct {
	Left  interface{}
	Right interface{}
}

func (Or) MarshalSql

func (o Or) MarshalSql(wr io.Writer, args *params.Args) error

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 Row

type Row struct {
	*sql.Row
	// contains filtered or unexported fields
}

func QueryRowContext

func QueryRowContext(ctx context.Context, qc QueryRowContexter, q interface{}) Row

func (Row) Err

func (r Row) Err() error

func (Row) Scan

func (r Row) Scan(dest ...interface{}) error

type Rows

type Rows struct {
	*sql.Rows
}

func (Rows) Scan

func (r Rows) Scan(dest ...interface{}) error

type Scannable

type Scannable interface {
	Scan(Scanner) error
}

type Scanner

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

type Select

type Select []SelectExpr

func (Select) MarshalSql

func (ss Select) MarshalSql(wr io.Writer, args *params.Args) error

type SelectExpr

type SelectExpr = interface{}

type Selector

type Selector interface {
	Select() []SelectExpr
}

type Stmts

type Stmts []interface{}

func (Stmts) MarshalSql

func (ss Stmts) MarshalSql(wr io.Writer, args *params.Args) error

type Subtract

type Subtract struct {
	Left  interface{}
	Right interface{}
}

func (Subtract) MarshalSql

func (s Subtract) MarshalSql(wr io.Writer, args *params.Args) error

type Where

type Where struct {
	Expr interface{}
}

func (Where) MarshalSql

func (where Where) MarshalSql(wr io.Writer, args *params.Args) error

Directories

Path Synopsis
internal
testutil/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
pkg
dialect/pg
Package pg pulls some postgres specific functionality.
Package pg pulls some postgres specific functionality.

Jump to

Keyboard shortcuts

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