Documentation ¶
Overview ¶
Copyright (C) 2019 The go-postgresql Authors. 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
- func NewDataRowForSelectors(schema resultset.Schema, rowDesc *protocol.RowDescription, ...) (*protocol.DataRow, error)
- func NewDataRowsForAggregateFunction(schema resultset.Schema, rowDesc *protocol.RowDescription, ...) ([]*protocol.DataRow, error)
- func NewResponseFromResultSet(stmt Select, rs resultset.ResultSet) (protocol.Responses, error)
- func NewRowFieldFrom(schema sql.ResultSetSchema, selector query.Selector, idx int) (*protocol.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 CreateIndex
- type CreateTable
- type DataType
- type Delete
- type DropDatabase
- type DropIndex
- type DropTable
- type Expr
- type Function
- type FunctionExecutor
- type Insert
- type ObjectID
- type OrExpr
- type Parser
- type Rollback
- type Row
- type SQLExecutor
- type Schema
- type Select
- type SelectOption
- type Selector
- type SelectorList
- type Statement
- type Table
- type TableList
- type Truncate
- type Update
- type Use
- type Vacuum
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewDataRowForSelectors ¶ added in v1.1.1
func NewDataRowForSelectors(schema resultset.Schema, rowDesc *protocol.RowDescription, selectors query.Selectors, row Row) (*protocol.DataRow, error)
NewDataRowForSelectors returns a new DataRow from the specified row.
func NewDataRowsForAggregateFunction ¶ added in v1.1.1
func NewDataRowsForAggregateFunction(schema resultset.Schema, rowDesc *protocol.RowDescription, selectors query.Selectors, rows []Row, groupBy string) ([]*protocol.DataRow, error)
NewDataRowsForAggregateFunction returns a new DataRow list from the specified rows.
func NewResponseFromResultSet ¶ added in v1.6.0
NewResponseFromResultSet creates a response from a result set.
func NewRowFieldFrom ¶ added in v1.1.1
func NewRowFieldFrom(schema sql.ResultSetSchema, selector query.Selector, idx int) (*protocol.RowField, error)
NewRowFieldFrom returns a new RowField from the specified selector.
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 ColumnList ¶ added in v0.9.1
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 SQLExecutor ¶ added in v1.5.9
SQLExecutor represents a SQL executor.
type SelectOption ¶ added in v1.3.0
type SelectOption = query.SelectOption
type SelectorList ¶ added in v1.3.0
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.