common

package
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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryContext

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

func QueryRowContext

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

func Templates

func Templates() (*template.Template, error)

Types

type Add

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

func (Add) MarshalSql

func (a Add) MarshalSql(wr io.Writer, params qry.Params) error

type And

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

func (And) MarshalSql

func (and And) MarshalSql(wr io.Writer, params qry.Params) error

type As

type As struct {
	Expr  interface{}
	Alias Id
}

func (As) MarshalSql

func (as As) MarshalSql(wr io.Writer, params qry.Params) error

type Between

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

func (Between) MarshalSql

func (b Between) MarshalSql(wr io.Writer, params qry.Params) error

type Dialect

type Dialect struct{}

func (Dialect) IsReserved

func (d Dialect) IsReserved(name string) bool

func (Dialect) NewParams

func (d Dialect) NewParams() qry.Params

func (Dialect) QueryContext

func (d Dialect) QueryContext(ctx context.Context, qc qry.QueryContexter, i interface{}) (qry.Rows, error)

func (Dialect) QueryRowContext

func (d Dialect) QueryRowContext(ctx context.Context, qrc qry.QueryRowContexter, i interface{}) qry.Row

type Divide

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

func (Divide) MarshalSql

func (d Divide) MarshalSql(wr io.Writer, params qry.Params) error

type Equals

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

func (Equals) MarshalSql

func (e Equals) MarshalSql(wr io.Writer, params qry.Params) error

type From

type From struct {
	Expr qry.QueryableExpr
}

func (From) MarshalSql

func (from From) MarshalSql(wr io.Writer, params qry.Params) error

type GreaterThan

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

func (GreaterThan) MarshalSql

func (gte GreaterThan) MarshalSql(wr io.Writer, params qry.Params) error

type GreaterThanOrEqual

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

func (GreaterThanOrEqual) MarshalSql

func (gte GreaterThanOrEqual) MarshalSql(wr io.Writer, params qry.Params) error

type Group

type Group struct {
	Contents interface{}
}

func (Group) MarshalSql

func (p Group) MarshalSql(wr io.Writer, params qry.Params) error

type Id

type Id = util.Verbatim

type InsertInto

type InsertInto struct {
	Expr qry.InsertableExpr
}

func (InsertInto) MarshalSql

func (i InsertInto) MarshalSql(wr io.Writer, params qry.Params) error

type Is

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

func (Is) MarshalSql

func (is Is) MarshalSql(wr io.Writer, params qry.Params) error

type IsNot

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

func (IsNot) MarshalSql

func (i IsNot) MarshalSql(wr io.Writer, params qry.Params) error

type IsNotNull

type IsNotNull struct {
	Left interface{}
}

func (IsNotNull) MarshalSql

func (i IsNotNull) MarshalSql(wr io.Writer, params qry.Params) 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, params qry.Params) 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, params qry.Params) error

type LessThanOrEqual

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

func (LessThanOrEqual) MarshalSql

func (lte LessThanOrEqual) MarshalSql(wr io.Writer, params qry.Params) error

type Multiply

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

func (Multiply) MarshalSql

func (m Multiply) MarshalSql(wr io.Writer, params qry.Params) error

type Not

type Not struct {
	Right interface{}
}

func (Not) MarshalSql

func (not Not) MarshalSql(wr io.Writer, params qry.Params) error

type NotEquals

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

func (NotEquals) MarshalSql

func (ne NotEquals) MarshalSql(wr io.Writer, params qry.Params) error

type Or

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

func (Or) MarshalSql

func (o Or) MarshalSql(wr io.Writer, params qry.Params) error

type Select

type Select []qry.SelectableExpr

func (Select) MarshalSql

func (ss Select) MarshalSql(wr io.Writer, params qry.Params) error

type Stmts

type Stmts []interface{}

func (Stmts) MarshalSql

func (ss Stmts) MarshalSql(wr io.Writer, params qry.Params) error

type Subtract

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

func (Subtract) MarshalSql

func (s Subtract) MarshalSql(wr io.Writer, params qry.Params) error

type ViewModel

type ViewModel struct {
	Model  interface{}
	Params qry.Params
}

type Where

type Where struct {
	Expr interface{}
}

func (Where) MarshalSql

func (where Where) MarshalSql(wr io.Writer, params qry.Params) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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