query

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 3 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 = message.DataType

DataType represents a PostgreSQL data type using the object ID.

func DataTypeFrom

func DataTypeFrom(t query.DataType) DataType

DataTypeFrom 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 FormatCode

type FormatCode int16

FormatCode represents a format code.

const (
	TextFormat   FormatCode = 0
	BinaryFormat FormatCode = 1
)

func FormatCodeFrom

func FormatCodeFrom(t query.DataType) FormatCode

FormatCodeFrom returns a format code from the specified data type.

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 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