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 NewDataRowsForAggregator(schema resultset.Schema, rowDesc *protocol.RowDescription, ...) ([]*protocol.DataRow, error)
- func NewResponseFromResultSet(rs resultset.ResultSet) (protocol.Responses, error)
- func NewRowFieldFrom(schema sql.ResultSetSchema, selector query.Selector, idx int) (*protocol.RowField, error)
- 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 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 NewDataRowsForAggregator ¶ added in v1.6.4
func NewDataRowsForAggregator(schema resultset.Schema, rowDesc *protocol.RowDescription, selectors query.Selectors, rows []Row, groupBy string) ([]*protocol.DataRow, error)
NewDataRowsForAggregator 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 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 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.