query

package
v0.0.0-...-b75375f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And struct {
	Combinator
}

func (*And) String

func (a *And) String() string

type Combinator

type Combinator struct {
	Conditions []Q
}

func (*Combinator) FieldName

func (c *Combinator) FieldName() string

func (*Combinator) SubQ

func (c *Combinator) SubQ() []Q

type Contains

type Contains struct {
	Field
}

func (*Contains) String

func (c *Contains) String() string

type Eq

type Eq struct {
	Field
}

func (*Eq) String

func (e *Eq) String() string

type F

type F string

F represents a reference to a field. This is used to disambiguate when the value in a Q refers to a string or a field.

func (F) String

func (f F) String() string

type Field

type Field struct {
	Field string
	Value interface{}
}

func (*Field) FieldName

func (f *Field) FieldName() string

func (*Field) SubQ

func (f *Field) SubQ() []Q

type Gt

type Gt struct {
	Field
}

func (*Gt) String

func (g *Gt) String() string

type Gte

type Gte struct {
	Field
}

func (*Gte) String

func (g *Gte) String() string

type In

type In struct {
	Field
}

type Join

type Join struct {
	Model interface{}
	Field string
	Query Q
}

type Lt

type Lt struct {
	Field
}

func (*Lt) String

func (l *Lt) String() string

type Lte

type Lte struct {
	Field
}

func (*Lte) String

func (l *Lte) String() string

type Neq

type Neq struct {
	Field
}

func (*Neq) String

func (n *Neq) String() string

type Or

type Or struct {
	Combinator
}

func (*Or) String

func (o *Or) String() string

type Q

type Q interface {
	// Qualified Go name. It might reference a
	// type like type|field
	FieldName() string
	SubQ() []Q
}

type Subquery

type Subquery string

Type Subquery represents a literal subquery passed as a Q condition. It can be used with Eq, Neq, In, etc...

Jump to

Keyboard shortcuts

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