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 NewErrInvalid(v any) error
- func NewErrMultiplePreparedStatementNotSupported(query string) error
- func NewErrMultipleTableNotSupported(query string) error
- func NewErrNotEqual(v1, v2 any) error
- func NewErrNotExist(v any) error
- func NewErrNotImplemented(msg string) error
- func NewErrNotSupported(msg string) error
- func NewErrPreparedPortalNotExist(name string) error
- func NewErrPreparedStatementNotExist(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 AlterDatabase
- type AlterTable
- type AndExpr
- type Begin
- type BindParam
- type CmpExpr
- type Column
- type ColumnList
- type Commit
- type Condition
- type Copy
- type CreateDatabase
- 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 Rollback
- type Row
- type Schema
- type Select
- type SelectOption
- type Selector
- type SelectorList
- type Statement
- type Table
- type TableList
- type Truncate
- type Update
- type Vacuum
Constants ¶
Variables ¶
var ErrExist = errors.New("exist")
ErrExist is returned when the specified object is exist.
var ErrInvalid = errors.New("invalid")
ErrInvalid is returned when the specified object is invalid.
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 NewErrInvalid ¶ added in v1.3.0
NewErrInvalid returns a new invalid error.
func NewErrMultiplePreparedStatementNotSupported ¶ added in v1.3.0
NewErrPreparedStatementMultiStatement returns a new prepared statement multi statement error.
func NewErrMultipleTableNotSupported ¶ added in v1.3.0
NewErrMultipleTableNotSupported returns a new prepared statement multi table 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 NewErrPreparedPortalNotExist ¶ added in v1.3.0
NewErrPreparedPortalNotExist returns a new prepared portal not exist error.
func NewErrPreparedStatementNotExist ¶ added in v1.3.0
NewErrPreparedStatementNotExist returns a new prepared statement 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 AlterDatabase ¶ added in v1.2.0
type AlterDatabase = query.AlterDatabase
type AlterTable ¶ added in v1.2.0
type AlterTable = query.AlterTable
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 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 SelectOption ¶ added in v1.3.0
type SelectOption = query.SelectOption
type SelectorList ¶ added in v1.3.0
type SelectorList = query.SelectorList
type Statement ¶
type Statement struct {
// contains filtered or unexported fields
}
Statement represents a statement instance.
func NewStatementWith ¶ added in v1.3.0
NewStatementWith returns a new statement.