Documentation
¶
Overview ¶
Copyright (C) 2019 Satoshi Konno. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func NewDataRowForSelectors(schema *query.Schema, rowDesc *message.RowDescription, ...) (*message.DataRow, error)
- func NewDataRowsForAggregateFunction(schema *query.Schema, rowDesc *message.RowDescription, ...) ([]*message.DataRow, error)
- func NewErrColumnNotExist(v any) error
- func NewErrColumnValueNotExist(v any) error
- func NewErrColumnsNotEqual(v1, v2 int) error
- func NewErrDatabaseExist(v string) error
- func NewErrDatabaseNotExist(v string) error
- func NewErrExist(v any) error
- func NewErrGroupByColumnValueNotExist(v any) error
- func NewErrNotEqual(v1, v2 any) error
- func NewErrNotExist(v any) error
- func NewErrNotImplemented(msg string) error
- func NewErrNotSupported(msg string) error
- func NewErrPreparedQueryNotExist(name string) error
- func NewErrTableExist(v string) error
- func NewErrTableNotExist(v string) error
- func NewRowFieldFrom(schema *query.Schema, selector query.Selector, idx int) (*message.RowField, error)
- type AggregateFunction
- type AggregateResultSet
- type AndExpr
- type BindParam
- type CmpExpr
- type Column
- type ColumnList
- type Condition
- type Copy
- type CreateDatabase
- type CreateIndex
- type CreateTable
- type DataType
- type Delete
- type DropDatabase
- type DropTable
- type Expr
- type Function
- type FunctionExecutor
- type Insert
- type OID
- type OrExpr
- type Parser
- type Row
- type Schema
- type Select
- type Statement
- type Table
- type Update
Constants ¶
Variables ¶
var ErrExist = errors.New("exist")
ErrExist is returned when the specified object is exist.
var ErrNotEqual = errors.New("not equal")
ErrNotEqual is returned when the specified object is not equal.
var ErrNotExist = errors.New("not exist")
ErrNotExist is returned when the specified object is not exist.
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented is returned when the operation is not implemented.
var ErrNotSupported = errors.New("not supported")
ErrNotSupported is returned when the operation is not supported.
Functions ¶
func NewDataRowForSelectors ¶ added in v1.1.1
func NewDataRowForSelectors(schema *query.Schema, rowDesc *message.RowDescription, selectors query.SelectorList, row Row) (*message.DataRow, error)
NewDataRowForSelectors returns a new DataRow from the specified row.
func NewDataRowsForAggregateFunction ¶ added in v1.1.1
func NewDataRowsForAggregateFunction(schema *query.Schema, rowDesc *message.RowDescription, selectors query.SelectorList, rows []Row, groupBy string) ([]*message.DataRow, error)
NewDataRowsForAggregateFunction returns a new DataRow list from the specified rows.
func NewErrColumnNotExist ¶ added in v1.1.1
NewErrColumnNotExist returns a new column not exist error.
func NewErrColumnValueNotExist ¶ added in v1.1.1
NewErrColumnValueNotExist returns a new column value not exist error.
func NewErrColumnsNotEqual ¶ added in v1.1.1
NewErrColumnsNotEqual returns a new columns not equal error.
func NewErrDatabaseExist ¶ added in v1.1.1
NewErrDatabaseExist returns a new database exist error.
func NewErrDatabaseNotExist ¶ added in v1.1.1
NewErrDatabaseNotExist returns a new database not exist error.
func NewErrExist ¶ added in v1.1.1
NewErrExist returns a new exist error.
func NewErrGroupByColumnValueNotExist ¶ added in v1.1.1
NewErrGroupByColumnValueNotExist returns a new group by column not exist error.
func NewErrNotEqual ¶ added in v1.1.1
NewErrNotEqual returns a new not equal error.
func NewErrNotExist ¶ added in v1.1.1
NewErrNotExist returns a new not exist error.
func NewErrNotImplemented ¶ added in v1.1.1
NewErrNotImplemented returns a new ErrNotImplemented error.
func NewErrNotSupported ¶ added in v1.1.1
NewErrNotSupported returns a new ErrNotSupported error.
func NewErrPreparedQueryNotExist ¶ added in v1.1.1
NewErrPreparedQueryNotExist returns a new prepared query not exist error.
func NewErrTableExist ¶ added in v1.1.1
NewErrTableExist returns a new table exist error.
func NewErrTableNotExist ¶ added in v1.1.1
NewErrTableNotExist returns a new table not exist error.
Types ¶
type AggregateFunction ¶ added in v1.1.1
type AggregateFunction = query.AggregateFunction
AggregateFunction represents an aggregate function.
type AggregateResultSet ¶ added in v1.1.1
type AggregateResultSet = query.AggregateResultSet
AggregateResultSet represents an aggregate result set.
type BindParam ¶
Aliases for types defined in github.com/cybergarage/go-postgresql/postgresql/query.
type ColumnList ¶ added in v0.9.1
type ColumnList = query.ColumnList
type CreateDatabase ¶
type CreateDatabase = query.CreateDatabase
type CreateIndex ¶
type CreateIndex = query.CreateIndex
type CreateTable ¶
type CreateTable = query.CreateTable
type DropDatabase ¶
type DropDatabase = query.DropDatabase
type FunctionExecutor ¶ added in v1.1.1
type FunctionExecutor = query.FunctionExecutor
FunctionExecutor represents a function executor.
type 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 Statement ¶
Statement represents a statement instance.
func NewStatement ¶
NewStatement returns a new statement.