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
- func NewDataRowForSelectors(schema *query.Schema, rowDesc *protocol.RowDescription, ...) (*protocol.DataRow, error)
- func NewDataRowsForAggregateFunction(schema *query.Schema, rowDesc *protocol.RowDescription, ...) ([]*protocol.DataRow, error)
- func NewRowFieldFrom(schema *query.Schema, 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 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 ¶
This section is empty.
Functions ¶
func NewDataRowForSelectors ¶ added in v1.1.1
func NewDataRowForSelectors(schema *query.Schema, rowDesc *protocol.RowDescription, selectors query.SelectorList, row Row) (*protocol.DataRow, error)
NewDataRowForSelectors returns a new DataRow from the specified row.
func NewDataRowsForAggregateFunction ¶ added in v1.1.1
func NewDataRowsForAggregateFunction(schema *query.Schema, rowDesc *protocol.RowDescription, selectors query.SelectorList, rows []Row, groupBy string) ([]*protocol.DataRow, error)
NewDataRowsForAggregateFunction returns a new DataRow list from the specified rows.
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 = sql.AlterDatabase
type AlterTable ¶ added in v1.2.0
type AlterTable = sql.AlterTable
type ColumnList ¶ added in v0.9.1
type ColumnList = query.ColumnList
type CreateDatabase ¶
type CreateDatabase = sql.CreateDatabase
type CreateTable ¶
type CreateTable = sql.CreateTable
type DropDatabase ¶
type DropDatabase = sql.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.