query

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Aliases for types defined in github.com/cybergarage/go-postgresql/postgresql/query.
	EQ  = query.EQ
	NEQ = query.NEQ
	LT  = query.LT
	LE  = query.LE
	GT  = query.GT
	GE  = query.GE
	IN  = query.IN
	NIN = query.NIN
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AndExpr

type AndExpr = query.AndExpr

type BindParam

type BindParam = query.BindParam

Aliases for types defined in github.com/cybergarage/go-postgresql/postgresql/query.

type CmpExpr

type CmpExpr = query.CmpExpr

type Column

type Column = query.Column

type ColumnList added in v0.9.1

type ColumnList = query.ColumnList

type Condition

type Condition = query.Condition

type Copy added in v0.9.1

type Copy = query.Copy

type CreateDatabase

type CreateDatabase = query.CreateDatabase

type CreateIndex

type CreateIndex = query.CreateIndex

type CreateTable

type CreateTable = query.CreateTable

type DataType

type DataType = system.DataType

DataType represents a data type.

func NewDataTypeFrom added in v1.0.2

func NewDataTypeFrom(t query.DataType) (*DataType, error)

NewDataTypeFrom returns a data type from the specified query data type.

type Delete

type Delete = query.Delete

type DropDatabase

type DropDatabase = query.DropDatabase

type DropTable

type DropTable = query.DropTable

type Expr

type Expr = query.Expr

type Insert

type Insert = query.Insert

func NewInsertWith added in v0.9.1

func NewInsertWith(tbl *Table, columns ColumnList) *Insert

NewInsertWith returns a new insert statement instance with the specified parameters.

type OID added in v1.0.2

type OID = system.OID

OID represents a object identifier.

type OrExpr

type OrExpr = query.OrExpr

type Parser

type Parser struct {
	sql.Parser
}

Parse returns a SQL parser.

func NewParser

func NewParser() *Parser

NewParser returns a new parser.

func (*Parser) ParseString

func (parser *Parser) ParseString(query string) ([]*Statement, error)

ParseString parses the specified query string and returns statements.

type Schema

type Schema = query.Schema

type Select

type Select = query.Select

type Statement

type Statement struct {
	query.Statement
}

Statement represents a statement instance.

func NewStatement

func NewStatement(stmt query.Statement) *Statement

NewStatement returns a new statement.

func (*Statement) Bind

func (stmt *Statement) Bind(params message.BindParams) error

Bind binds the statement with the specified parameters.

type Table

type Table = query.Table

type Update

type Update = query.Update

Jump to

Keyboard shortcuts

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