Documentation ¶
Index ¶
- Variables
- func CurrentTime(ctx context.Context) *time.Time
- func DateFromInt64Value(v int64) (time.Time, error)
- func EncodeGoValue(t types.Type, v interface{}) (interface{}, error)
- func EncodeGoValues(v []interface{}, params []*ast.ParameterNode) ([]interface{}, error)
- func EncodeNamedValues(v []driver.NamedValue, params []*ast.ParameterNode) ([]sql.NamedArg, error)
- func EncodeValue(v Value) (interface{}, error)
- func LiteralFromValue(v Value) (string, error)
- func LiteralFromZetaSQLValue(v types.Value) (string, error)
- func RegisterFunctions(conn *sqlite3.SQLiteConn) error
- func TimestampFromFloatValue(f float64) (time.Time, error)
- func TimestampFromInt64Value(v int64) (time.Time, error)
- func WithCurrentTime(ctx context.Context, now time.Time) context.Context
- type ANY_VALUE
- type APPROX_COUNT_DISTINCT
- type APPROX_QUANTILES
- type APPROX_TOP_COUNT
- type APPROX_TOP_SUM
- type ARRAY
- type ARRAY_AGG
- type ARRAY_CONCAT_AGG
- type AVG
- type AbortBatchStmtNode
- type AddColumnActionNode
- type AddConstraintActionNode
- type AddToRestricteeListActionNode
- type AggregateBindFunction
- type AggregateFuncInfo
- type AggregateFunctionCallNode
- type AggregateHavingModifierNode
- type AggregateOrderBy
- type AggregateScanNode
- type Aggregator
- type AggregatorFuncOption
- type AggregatorFuncOptionType
- type AggregatorOption
- type AlterAllRowAccessPoliciesStmtNode
- type AlterColumnDropDefaultActionNode
- type AlterColumnDropNotNullActionNode
- type AlterColumnOptionsActionNode
- type AlterColumnSetDataTypeActionNode
- type AlterColumnSetDefaultActionNode
- type AlterDatabaseStmtNode
- type AlterEntityStmtNode
- type AlterMaterializedViewStmtNode
- type AlterPrivilegeRestrictionStmtNode
- type AlterRowAccessPolicyStmtNode
- type AlterSchemaStmtNode
- type AlterTableSetOptionsStmtNode
- type AlterTableStmtNode
- type AlterViewStmtNode
- type AnalyticFunctionCallNode
- type AnalyticFunctionGroupNode
- type AnalyticScanNode
- type AnalyzeStmtNode
- type Analyzer
- func (a *Analyzer) AddNamePath(path string) error
- func (a *Analyzer) Analyze(ctx context.Context, conn *Conn, query string, args []driver.NamedValue) ([]StmtActionFunc, error)
- func (a *Analyzer) MaxNamePath() int
- func (a *Analyzer) NamePath() []string
- func (a *Analyzer) SetAutoIndexMode(enabled bool)
- func (a *Analyzer) SetExplainMode(enabled bool)
- func (a *Analyzer) SetMaxNamePath(num int)
- func (a *Analyzer) SetNamePath(path []string) error
- type AnonymizedAggregateScanNode
- type ArgumentDefNode
- type ArgumentListNode
- type ArgumentRefNode
- type ArrayScanNode
- type ArrayValue
- func (av *ArrayValue) Add(v Value) (Value, error)
- func (av *ArrayValue) Div(v Value) (Value, error)
- func (av *ArrayValue) EQ(v Value) (bool, error)
- func (av *ArrayValue) Format(verb rune) string
- func (av *ArrayValue) GT(v Value) (bool, error)
- func (av *ArrayValue) GTE(v Value) (bool, error)
- func (av *ArrayValue) Has(v Value) (bool, error)
- func (av *ArrayValue) Interface() interface{}
- func (av *ArrayValue) LT(v Value) (bool, error)
- func (av *ArrayValue) LTE(v Value) (bool, error)
- func (av *ArrayValue) Mul(v Value) (Value, error)
- func (av *ArrayValue) Sub(v Value) (Value, error)
- func (av *ArrayValue) ToArray() (*ArrayValue, error)
- func (av *ArrayValue) ToBool() (bool, error)
- func (av *ArrayValue) ToBytes() ([]byte, error)
- func (av *ArrayValue) ToFloat64() (float64, error)
- func (av *ArrayValue) ToInt64() (int64, error)
- func (av *ArrayValue) ToJSON() (string, error)
- func (av *ArrayValue) ToRat() (*big.Rat, error)
- func (av *ArrayValue) ToString() (string, error)
- func (av *ArrayValue) ToStruct() (*StructValue, error)
- func (av *ArrayValue) ToTime() (time.Time, error)
- type AssertRowsModifiedNode
- type AssertStmtNode
- type AssignmentStmtNode
- type AuxLoadDataStmtNode
- type BIT_AND_AGG
- type BIT_OR_AGG
- type BIT_XOR_AGG
- type BeginStmtAction
- func (a *BeginStmtAction) Args() []interface{}
- func (a *BeginStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *BeginStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *BeginStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *BeginStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type BeginStmtNode
- type BindFunction
- type BoolValue
- func (bv BoolValue) Add(v Value) (Value, error)
- func (bv BoolValue) Div(v Value) (Value, error)
- func (bv BoolValue) EQ(v Value) (bool, error)
- func (bv BoolValue) Format(verb rune) string
- func (bv BoolValue) GT(v Value) (bool, error)
- func (bv BoolValue) GTE(v Value) (bool, error)
- func (bv BoolValue) Interface() interface{}
- func (bv BoolValue) LT(v Value) (bool, error)
- func (bv BoolValue) LTE(v Value) (bool, error)
- func (bv BoolValue) Mul(v Value) (Value, error)
- func (bv BoolValue) Sub(v Value) (Value, error)
- func (bv BoolValue) ToArray() (*ArrayValue, error)
- func (bv BoolValue) ToBool() (bool, error)
- func (bv BoolValue) ToBytes() ([]byte, error)
- func (bv BoolValue) ToFloat64() (float64, error)
- func (bv BoolValue) ToInt64() (int64, error)
- func (bv BoolValue) ToJSON() (string, error)
- func (bv BoolValue) ToRat() (*big.Rat, error)
- func (bv BoolValue) ToString() (string, error)
- func (bv BoolValue) ToStruct() (*StructValue, error)
- func (bv BoolValue) ToTime() (time.Time, error)
- type BytesValue
- func (bv BytesValue) Add(v Value) (Value, error)
- func (bv BytesValue) Div(v Value) (Value, error)
- func (bv BytesValue) EQ(v Value) (bool, error)
- func (bv BytesValue) Format(verb rune) string
- func (bv BytesValue) GT(v Value) (bool, error)
- func (bv BytesValue) GTE(v Value) (bool, error)
- func (bv BytesValue) Interface() interface{}
- func (bv BytesValue) LT(v Value) (bool, error)
- func (bv BytesValue) LTE(v Value) (bool, error)
- func (bv BytesValue) Mul(v Value) (Value, error)
- func (bv BytesValue) Sub(v Value) (Value, error)
- func (bv BytesValue) ToArray() (*ArrayValue, error)
- func (bv BytesValue) ToBool() (bool, error)
- func (bv BytesValue) ToBytes() ([]byte, error)
- func (bv BytesValue) ToFloat64() (float64, error)
- func (bv BytesValue) ToInt64() (int64, error)
- func (bv BytesValue) ToJSON() (string, error)
- func (bv BytesValue) ToRat() (*big.Rat, error)
- func (bv BytesValue) ToString() (string, error)
- func (bv BytesValue) ToStruct() (*StructValue, error)
- func (bv BytesValue) ToTime() (time.Time, error)
- type CORR
- type COUNT
- type COUNTIF
- type COUNT_STAR
- type COVAR_POP
- type COVAR_SAMP
- type CallStmtNode
- type CastNode
- type Catalog
- func (c *Catalog) AddNewFunctionSpec(ctx context.Context, conn *Conn, spec *FunctionSpec) error
- func (c *Catalog) AddNewTableSpec(ctx context.Context, conn *Conn, spec *TableSpec) error
- func (c *Catalog) DeleteFunctionSpec(ctx context.Context, conn *Conn, name string) error
- func (c *Catalog) DeleteTableSpec(ctx context.Context, conn *Conn, name string) error
- func (c *Catalog) ExtendedTypeSuperTypes(typ types.Type) (*types.TypeListView, error)
- func (c *Catalog) FindConnection(path []string) (types.Connection, error)
- func (c *Catalog) FindConstant(path []string) (types.Constant, int, error)
- func (c *Catalog) FindConversion(from, to types.Type) (types.Conversion, error)
- func (c *Catalog) FindFunction(path []string) (*types.Function, error)
- func (c *Catalog) FindModel(path []string) (types.Model, error)
- func (c *Catalog) FindProcedure(path []string) (*types.Procedure, error)
- func (c *Catalog) FindTable(path []string) (types.Table, error)
- func (c *Catalog) FindTableValuedFunction(path []string) (types.TableValuedFunction, error)
- func (c *Catalog) FindType(path []string) (types.Type, error)
- func (c *Catalog) FullName() string
- func (c *Catalog) SuggestConstant(mistypedPath []string) string
- func (c *Catalog) SuggestFunction(mistypedPath []string) string
- func (c *Catalog) SuggestModel(mistypedPath []string) string
- func (c *Catalog) SuggestTable(mistypedPath []string) string
- func (c *Catalog) SuggestTableValuedFunction(mistypedPath []string) string
- func (c *Catalog) Sync(ctx context.Context, conn *Conn) error
- type CatalogSpecKind
- type ChangedCatalog
- type ChangedFunction
- type ChangedTable
- type CheckConstraintNode
- type CloneDataStmtNode
- type ColumnAnnotationsNode
- type ColumnDefaultValueNode
- type ColumnDefinitionNode
- type ColumnHolderNode
- type ColumnRefNode
- type ColumnSpec
- type CombinationFormatTimeInfo
- type CommitStmtAction
- func (a *CommitStmtAction) Args() []interface{}
- func (a *CommitStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *CommitStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *CommitStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *CommitStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type CommitStmtNode
- type ComputedColumnNode
- type Conn
- type ConnectionNode
- type ConstantNode
- type CreateConstantStmtNode
- type CreateDatabaseStmtNode
- type CreateEntityStmtNode
- type CreateExternalTableStmtNode
- type CreateFunctionStmt
- type CreateFunctionStmtAction
- func (a *CreateFunctionStmtAction) Args() []interface{}
- func (a *CreateFunctionStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *CreateFunctionStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *CreateFunctionStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *CreateFunctionStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type CreateFunctionStmtNode
- type CreateIndexStmtNode
- type CreateMaterializedViewStmtNode
- type CreateModelStmtNode
- type CreatePrivilegeRestrictionStmtNode
- type CreateProcedureStmtNode
- type CreateRowAccessPolicyStmtNode
- type CreateSchemaStmtNode
- type CreateSnapshotTableStmtNode
- type CreateTableAsSelectStmtNode
- type CreateTableFunctionStmtNode
- type CreateTableStmt
- type CreateTableStmtAction
- func (a *CreateTableStmtAction) Args() []interface{}
- func (a *CreateTableStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *CreateTableStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *CreateTableStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *CreateTableStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type CreateTableStmtNode
- type CreateViewStmt
- type CreateViewStmtAction
- func (a *CreateViewStmtAction) Args() []interface{}
- func (a *CreateViewStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *CreateViewStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *CreateViewStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *CreateViewStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type CreateViewStmtNode
- type DMLDefaultNode
- type DMLStmt
- func (s *DMLStmt) CheckNamedValue(value *driver.NamedValue) error
- func (s *DMLStmt) Close() error
- func (s *DMLStmt) Exec(args []driver.Value) (driver.Result, error)
- func (s *DMLStmt) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (s *DMLStmt) NumInput() int
- func (s *DMLStmt) Query(args []driver.Value) (driver.Rows, error)
- func (s *DMLStmt) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type DMLStmtAction
- func (a *DMLStmtAction) Args() []interface{}
- func (a *DMLStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *DMLStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *DMLStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *DMLStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type DMLValueNode
- type DateValue
- func (d DateValue) Add(v Value) (Value, error)
- func (d DateValue) AddDateWithInterval(v int, interval string) (Value, error)
- func (d DateValue) Div(v Value) (Value, error)
- func (d DateValue) EQ(v Value) (bool, error)
- func (d DateValue) Format(verb rune) string
- func (d DateValue) GT(v Value) (bool, error)
- func (d DateValue) GTE(v Value) (bool, error)
- func (d DateValue) Interface() interface{}
- func (d DateValue) LT(v Value) (bool, error)
- func (d DateValue) LTE(v Value) (bool, error)
- func (d DateValue) Mul(v Value) (Value, error)
- func (d DateValue) Sub(v Value) (Value, error)
- func (d DateValue) ToArray() (*ArrayValue, error)
- func (d DateValue) ToBool() (bool, error)
- func (d DateValue) ToBytes() ([]byte, error)
- func (d DateValue) ToFloat64() (float64, error)
- func (d DateValue) ToInt64() (int64, error)
- func (d DateValue) ToJSON() (string, error)
- func (d DateValue) ToRat() (*big.Rat, error)
- func (d DateValue) ToString() (string, error)
- func (d DateValue) ToStruct() (*StructValue, error)
- func (d DateValue) ToTime() (time.Time, error)
- type DatetimeValue
- func (d DatetimeValue) Add(v Value) (Value, error)
- func (d DatetimeValue) Div(v Value) (Value, error)
- func (d DatetimeValue) EQ(v Value) (bool, error)
- func (d DatetimeValue) Format(verb rune) string
- func (d DatetimeValue) GT(v Value) (bool, error)
- func (d DatetimeValue) GTE(v Value) (bool, error)
- func (d DatetimeValue) Interface() interface{}
- func (d DatetimeValue) LT(v Value) (bool, error)
- func (d DatetimeValue) LTE(v Value) (bool, error)
- func (d DatetimeValue) Mul(v Value) (Value, error)
- func (d DatetimeValue) Sub(v Value) (Value, error)
- func (d DatetimeValue) ToArray() (*ArrayValue, error)
- func (d DatetimeValue) ToBool() (bool, error)
- func (d DatetimeValue) ToBytes() ([]byte, error)
- func (d DatetimeValue) ToFloat64() (float64, error)
- func (d DatetimeValue) ToInt64() (int64, error)
- func (d DatetimeValue) ToJSON() (string, error)
- func (d DatetimeValue) ToRat() (*big.Rat, error)
- func (d DatetimeValue) ToString() (string, error)
- func (d DatetimeValue) ToStruct() (*StructValue, error)
- func (d DatetimeValue) ToTime() (time.Time, error)
- type DayOfWeek
- type DefineTableStmtNode
- type DeleteStmtNode
- type DescribeStmtNode
- type DescriptorNode
- type DropColumnActionNode
- type DropConstraintActionNode
- type DropFunctionStmtNode
- type DropMaterializedViewStmtNode
- type DropPrimaryKeyActionNode
- type DropPrivilegeRestrictionStmtNode
- type DropRowAccessPolicyStmtNode
- type DropSearchIndexStmtNode
- type DropSnapshotTableStmtNode
- type DropStmtAction
- func (a *DropStmtAction) Args() []interface{}
- func (a *DropStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *DropStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *DropStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *DropStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type DropStmtNode
- type DropTableFunctionStmtNode
- type ErrorGroup
- type ExecuteImmediateArgumentNode
- type ExecuteImmediateStmtNode
- type ExplainStmtNode
- type ExportDataStmtNode
- type ExportModelStmtNode
- type ExpressionColumnNode
- type ExtendedCastElementNode
- type ExtendedCastNode
- type FilterFieldArgNode
- type FilterFieldNode
- type FilterScanNode
- type FilterUsingActionNode
- type FlattenNode
- type FlattenedArgNode
- type FloatValue
- func (fv FloatValue) Add(v Value) (Value, error)
- func (fv FloatValue) Div(v Value) (Value, error)
- func (fv FloatValue) EQ(v Value) (bool, error)
- func (fv FloatValue) Format(verb rune) string
- func (fv FloatValue) GT(v Value) (bool, error)
- func (fv FloatValue) GTE(v Value) (bool, error)
- func (fv FloatValue) Interface() interface{}
- func (fv FloatValue) LT(v Value) (bool, error)
- func (fv FloatValue) LTE(v Value) (bool, error)
- func (fv FloatValue) Mul(v Value) (Value, error)
- func (fv FloatValue) Sub(v Value) (Value, error)
- func (fv FloatValue) ToArray() (*ArrayValue, error)
- func (fv FloatValue) ToBool() (bool, error)
- func (fv FloatValue) ToBytes() ([]byte, error)
- func (fv FloatValue) ToFloat64() (float64, error)
- func (fv FloatValue) ToInt64() (int64, error)
- func (fv FloatValue) ToJSON() (string, error)
- func (fv FloatValue) ToRat() (*big.Rat, error)
- func (fv FloatValue) ToString() (string, error)
- func (fv FloatValue) ToStruct() (*StructValue, error)
- func (fv FloatValue) ToTime() (time.Time, error)
- type ForeignKeyNode
- type FormatContext
- type FormatFlag
- type FormatInfo
- type FormatParam
- type FormatPrecision
- type FormatTimeInfo
- type FormatWidth
- type Formatter
- type FuncInfo
- type FunctionArgumentNode
- type FunctionCallNode
- type FunctionSignatureHolderNode
- type FunctionSpec
- type GeneratedColumnInfoNode
- type GetJsonFieldNode
- type GetProtoFieldNode
- type GetStructFieldNode
- type GrantStmtNode
- type GrantToActionNode
- type GroupRowsScanNode
- type GroupingSetNode
- type HLL_COUNT_INIT
- type HLL_COUNT_MERGE
- type HLL_COUNT_MERGE_PARTIAL
- type ImportStmtNode
- type IndexItemNode
- type InlineLambdaNode
- type InputPattern
- type InsertRowNode
- type InsertStmtNode
- type IntValue
- func (iv IntValue) Add(v Value) (Value, error)
- func (iv IntValue) Div(v Value) (Value, error)
- func (iv IntValue) EQ(v Value) (bool, error)
- func (iv IntValue) Format(verb rune) string
- func (iv IntValue) GT(v Value) (bool, error)
- func (iv IntValue) GTE(v Value) (bool, error)
- func (iv IntValue) Interface() interface{}
- func (iv IntValue) LT(v Value) (bool, error)
- func (iv IntValue) LTE(v Value) (bool, error)
- func (iv IntValue) Mul(v Value) (Value, error)
- func (iv IntValue) Sub(v Value) (Value, error)
- func (iv IntValue) ToArray() (*ArrayValue, error)
- func (iv IntValue) ToBool() (bool, error)
- func (iv IntValue) ToBytes() ([]byte, error)
- func (iv IntValue) ToFloat64() (float64, error)
- func (iv IntValue) ToInt64() (int64, error)
- func (iv IntValue) ToJSON() (string, error)
- func (iv IntValue) ToRat() (*big.Rat, error)
- func (iv IntValue) ToString() (string, error)
- func (iv IntValue) ToStruct() (*StructValue, error)
- func (iv IntValue) ToTime() (time.Time, error)
- type IntervalValue
- func (iv *IntervalValue) Add(v Value) (Value, error)
- func (iv *IntervalValue) Div(v Value) (Value, error)
- func (iv *IntervalValue) EQ(v Value) (bool, error)
- func (iv *IntervalValue) Format(verb rune) string
- func (iv *IntervalValue) GT(v Value) (bool, error)
- func (iv *IntervalValue) GTE(v Value) (bool, error)
- func (iv *IntervalValue) Interface() interface{}
- func (iv *IntervalValue) LT(v Value) (bool, error)
- func (iv *IntervalValue) LTE(v Value) (bool, error)
- func (iv *IntervalValue) Mul(v Value) (Value, error)
- func (iv *IntervalValue) Sub(v Value) (Value, error)
- func (iv *IntervalValue) ToArray() (*ArrayValue, error)
- func (iv *IntervalValue) ToBool() (bool, error)
- func (iv *IntervalValue) ToBytes() ([]byte, error)
- func (iv *IntervalValue) ToFloat64() (float64, error)
- func (iv *IntervalValue) ToInt64() (int64, error)
- func (iv *IntervalValue) ToJSON() (string, error)
- func (iv *IntervalValue) ToRat() (*big.Rat, error)
- func (iv *IntervalValue) ToString() (string, error)
- func (iv *IntervalValue) ToStruct() (*StructValue, error)
- func (iv *IntervalValue) ToTime() (time.Time, error)
- type JoinScanNode
- type JsonValue
- func (jv JsonValue) Add(v Value) (Value, error)
- func (jv JsonValue) Div(v Value) (Value, error)
- func (jv JsonValue) EQ(v Value) (bool, error)
- func (jv JsonValue) Format(verb rune) string
- func (jv JsonValue) GT(v Value) (bool, error)
- func (jv JsonValue) GTE(v Value) (bool, error)
- func (jv JsonValue) Interface() interface{}
- func (jv JsonValue) LT(v Value) (bool, error)
- func (jv JsonValue) LTE(v Value) (bool, error)
- func (jv JsonValue) Mul(v Value) (Value, error)
- func (jv JsonValue) Sub(v Value) (Value, error)
- func (jv JsonValue) ToArray() (*ArrayValue, error)
- func (jv JsonValue) ToBool() (bool, error)
- func (jv JsonValue) ToBytes() ([]byte, error)
- func (jv JsonValue) ToFloat64() (float64, error)
- func (jv JsonValue) ToInt64() (int64, error)
- func (jv JsonValue) ToJSON() (string, error)
- func (jv JsonValue) ToRat() (*big.Rat, error)
- func (jv JsonValue) ToString() (string, error)
- func (jv JsonValue) ToStruct() (*StructValue, error)
- func (jv JsonValue) ToTime() (time.Time, error)
- func (jv JsonValue) Type() string
- type LOGICAL_AND
- type LOGICAL_OR
- type LetExprNode
- type LimitOffsetScanNode
- type LiteralNode
- type MAX
- type MIN
- type MakeProtoFieldNode
- type MakeProtoNode
- type MakeStructNode
- type MergeStmtAction
- func (a *MergeStmtAction) Args() []interface{}
- func (a *MergeStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *MergeStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *MergeStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *MergeStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type MergeStmtNode
- type MergeWhenNode
- type ModelNode
- type ModuleStmtNode
- type Month
- type NameAndFunc
- type NamePath
- type NameWithType
- type NumericValue
- func (nv *NumericValue) Add(v Value) (Value, error)
- func (nv *NumericValue) Div(v Value) (ret Value, e error)
- func (nv *NumericValue) EQ(v Value) (bool, error)
- func (nv *NumericValue) Format(verb rune) string
- func (nv *NumericValue) GT(v Value) (bool, error)
- func (nv *NumericValue) GTE(v Value) (bool, error)
- func (nv *NumericValue) Interface() interface{}
- func (nv *NumericValue) LT(v Value) (bool, error)
- func (nv *NumericValue) LTE(v Value) (bool, error)
- func (nv *NumericValue) Mul(v Value) (Value, error)
- func (nv *NumericValue) Sub(v Value) (Value, error)
- func (nv *NumericValue) ToArray() (*ArrayValue, error)
- func (nv *NumericValue) ToBool() (bool, error)
- func (nv *NumericValue) ToBytes() ([]byte, error)
- func (nv *NumericValue) ToFloat64() (float64, error)
- func (nv *NumericValue) ToInt64() (int64, error)
- func (nv *NumericValue) ToJSON() (string, error)
- func (nv *NumericValue) ToRat() (*big.Rat, error)
- func (nv *NumericValue) ToString() (string, error)
- func (nv *NumericValue) ToStruct() (*StructValue, error)
- func (nv *NumericValue) ToTime() (time.Time, error)
- type ObjectUnitNode
- type OptionNode
- type OrderByItemNode
- type OrderByScanNode
- type OrderedValue
- type OutputColumnNode
- type ParameterNode
- type ParseFunction
- type PartitionedValue
- type PivotColumnNode
- type PivotScanNode
- type PrimaryKeyNode
- type PrivilegeNode
- type ProjectScanNode
- type QueryStmt
- func (s *QueryStmt) CheckNamedValue(value *driver.NamedValue) error
- func (s *QueryStmt) Close() error
- func (s *QueryStmt) Exec(args []driver.Value) (driver.Result, error)
- func (s *QueryStmt) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (s *QueryStmt) NumInput() int
- func (s *QueryStmt) OutputColumns() []*ColumnSpec
- func (s *QueryStmt) Query(args []driver.Value) (driver.Rows, error)
- func (s *QueryStmt) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type QueryStmtAction
- func (a *QueryStmtAction) Args() []interface{}
- func (a *QueryStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *QueryStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *QueryStmtAction) ExplainQueryPlan(ctx context.Context, conn *Conn) error
- func (a *QueryStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *QueryStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type QueryStmtNode
- type RecursiveRefScanNode
- type RecursiveScanNode
- type RelationArgumentScanNode
- type RemoveFromRestricteeListActionNode
- type RenameColumnActionNode
- type RenameStmtNode
- type RenameToActionNode
- type ReplaceFieldItemNode
- type ReplaceFieldNode
- type RestrictToActionNode
- type Result
- type ReturningClauseNode
- type RevokeFromActionNode
- type RevokeStmtNode
- type RollbackStmtNode
- type Rows
- type RunBatchStmtNode
- type SQLiteFunction
- type STDDEV
- type STDDEV_POP
- type STDDEV_SAMP
- type STRING_AGG
- type SUM
- type SafeValue
- func (v *SafeValue) Add(arg Value) (Value, error)
- func (v *SafeValue) Div(arg Value) (Value, error)
- func (v *SafeValue) EQ(arg Value) (bool, error)
- func (v *SafeValue) Format(verb rune) string
- func (v *SafeValue) GT(arg Value) (bool, error)
- func (v *SafeValue) GTE(arg Value) (bool, error)
- func (v *SafeValue) Interface() interface{}
- func (v *SafeValue) LT(arg Value) (bool, error)
- func (v *SafeValue) LTE(arg Value) (bool, error)
- func (v *SafeValue) Mul(arg Value) (Value, error)
- func (v *SafeValue) Sub(arg Value) (Value, error)
- func (v *SafeValue) ToArray() (*ArrayValue, error)
- func (v *SafeValue) ToBool() (bool, error)
- func (v *SafeValue) ToBytes() ([]byte, error)
- func (v *SafeValue) ToFloat64() (float64, error)
- func (v *SafeValue) ToInt64() (int64, error)
- func (v *SafeValue) ToJSON() (string, error)
- func (v *SafeValue) ToRat() (*big.Rat, error)
- func (v *SafeValue) ToString() (string, error)
- func (v *SafeValue) ToStruct() (*StructValue, error)
- func (v *SafeValue) ToTime() (time.Time, error)
- type SampleScanNode
- type SetAsActionNode
- type SetCollateClauseNode
- type SetOperationItemNode
- type SetOperationScanNode
- type SetOptionsActionNode
- type SetTransactionStmtNode
- type ShowStmtNode
- type SingleRowScanNode
- type StartBatchStmtNode
- type StmtAction
- type StmtActionFunc
- type StringValue
- func (sv StringValue) Add(v Value) (Value, error)
- func (sv StringValue) Div(v Value) (Value, error)
- func (sv StringValue) EQ(v Value) (bool, error)
- func (sv StringValue) Format(verb rune) string
- func (sv StringValue) GT(v Value) (bool, error)
- func (sv StringValue) GTE(v Value) (bool, error)
- func (sv StringValue) Interface() interface{}
- func (sv StringValue) LT(v Value) (bool, error)
- func (sv StringValue) LTE(v Value) (bool, error)
- func (sv StringValue) Mul(v Value) (Value, error)
- func (sv StringValue) Sub(v Value) (Value, error)
- func (sv StringValue) ToArray() (*ArrayValue, error)
- func (sv StringValue) ToBool() (bool, error)
- func (sv StringValue) ToBytes() ([]byte, error)
- func (sv StringValue) ToFloat64() (float64, error)
- func (sv StringValue) ToInt64() (int64, error)
- func (sv StringValue) ToJSON() (string, error)
- func (sv StringValue) ToRat() (*big.Rat, error)
- func (sv StringValue) ToString() (string, error)
- func (sv StringValue) ToStruct() (*StructValue, error)
- func (sv StringValue) ToTime() (time.Time, error)
- type StructValue
- func (sv *StructValue) Add(v Value) (Value, error)
- func (sv *StructValue) Div(v Value) (Value, error)
- func (sv *StructValue) EQ(v Value) (bool, error)
- func (sv *StructValue) Format(verb rune) string
- func (sv *StructValue) GT(v Value) (bool, error)
- func (sv *StructValue) GTE(v Value) (bool, error)
- func (sv *StructValue) Interface() interface{}
- func (sv *StructValue) LT(v Value) (bool, error)
- func (sv *StructValue) LTE(v Value) (bool, error)
- func (sv *StructValue) Mul(v Value) (Value, error)
- func (sv *StructValue) Sub(v Value) (Value, error)
- func (sv *StructValue) ToArray() (*ArrayValue, error)
- func (sv *StructValue) ToBool() (bool, error)
- func (sv *StructValue) ToBytes() ([]byte, error)
- func (sv *StructValue) ToFloat64() (float64, error)
- func (sv *StructValue) ToInt64() (int64, error)
- func (sv *StructValue) ToJSON() (string, error)
- func (sv *StructValue) ToRat() (*big.Rat, error)
- func (sv *StructValue) ToString() (string, error)
- func (sv *StructValue) ToStruct() (*StructValue, error)
- func (sv *StructValue) ToTime() (time.Time, error)
- type StructValueLayout
- type SubqueryExprNode
- type SystemVariableNode
- type TVFScanNode
- type TableAndColumnInfoNode
- type TableScanNode
- type TableSpec
- type TimeFormatType
- type TimeParserPostProcessor
- type TimeValue
- func (t TimeValue) Add(v Value) (Value, error)
- func (t TimeValue) Div(v Value) (Value, error)
- func (t TimeValue) EQ(v Value) (bool, error)
- func (t TimeValue) Format(verb rune) string
- func (t TimeValue) GT(v Value) (bool, error)
- func (t TimeValue) GTE(v Value) (bool, error)
- func (t TimeValue) Interface() interface{}
- func (t TimeValue) LT(v Value) (bool, error)
- func (t TimeValue) LTE(v Value) (bool, error)
- func (t TimeValue) Mul(v Value) (Value, error)
- func (t TimeValue) Sub(v Value) (Value, error)
- func (t TimeValue) ToArray() (*ArrayValue, error)
- func (t TimeValue) ToBool() (bool, error)
- func (t TimeValue) ToBytes() ([]byte, error)
- func (t TimeValue) ToFloat64() (float64, error)
- func (t TimeValue) ToInt64() (int64, error)
- func (t TimeValue) ToJSON() (string, error)
- func (t TimeValue) ToRat() (*big.Rat, error)
- func (t TimeValue) ToString() (string, error)
- func (t TimeValue) ToStruct() (*StructValue, error)
- func (t TimeValue) ToTime() (time.Time, error)
- type TimestampValue
- func (t TimestampValue) Add(v Value) (Value, error)
- func (t TimestampValue) AddValueWithPart(v int64, part string) (Value, error)
- func (t TimestampValue) Div(v Value) (Value, error)
- func (t TimestampValue) EQ(v Value) (bool, error)
- func (t TimestampValue) Format(verb rune) string
- func (t TimestampValue) GT(v Value) (bool, error)
- func (t TimestampValue) GTE(v Value) (bool, error)
- func (t TimestampValue) Interface() interface{}
- func (t TimestampValue) LT(v Value) (bool, error)
- func (t TimestampValue) LTE(v Value) (bool, error)
- func (t TimestampValue) Mul(v Value) (Value, error)
- func (t TimestampValue) Sub(v Value) (Value, error)
- func (t TimestampValue) ToArray() (*ArrayValue, error)
- func (t TimestampValue) ToBool() (bool, error)
- func (t TimestampValue) ToBytes() ([]byte, error)
- func (t TimestampValue) ToFloat64() (float64, error)
- func (t TimestampValue) ToInt64() (int64, error)
- func (t TimestampValue) ToJSON() (string, error)
- func (t TimestampValue) ToRat() (*big.Rat, error)
- func (t TimestampValue) ToString() (string, error)
- func (t TimestampValue) ToStruct() (*StructValue, error)
- func (t TimestampValue) ToTime() (time.Time, error)
- type TruncateStmtAction
- func (a *TruncateStmtAction) Args() []interface{}
- func (a *TruncateStmtAction) Cleanup(ctx context.Context, conn *Conn) error
- func (a *TruncateStmtAction) ExecContext(ctx context.Context, conn *Conn) (driver.Result, error)
- func (a *TruncateStmtAction) Prepare(ctx context.Context, conn *Conn) (driver.Stmt, error)
- func (a *TruncateStmtAction) QueryContext(ctx context.Context, conn *Conn) (*Rows, error)
- type TruncateStmtNode
- type Type
- func (t *Type) AvailableAutoIndex() bool
- func (t *Type) FormatType() string
- func (t *Type) FunctionArgumentType() (*types.FunctionArgumentType, error)
- func (t *Type) GoReflectType() (reflect.Type, error)
- func (t *Type) IsArray() bool
- func (t *Type) IsStruct() bool
- func (t *Type) ToZetaSQLType() (types.Type, error)
- type UnnestItemNode
- type UnpivotArgNode
- type UnpivotScanNode
- type UpdateArrayItemNode
- type UpdateItemNode
- type UpdateStmtNode
- type VARIANCE
- type VAR_POP
- type VAR_SAMP
- type Value
- func ABS(a Value) (Value, error)
- func ACOS(x Value) (Value, error)
- func ACOSH(x Value) (Value, error)
- func ADD(a, b Value) (Value, error)
- func AND(args ...Value) (Value, error)
- func ARRAY_CONCAT(args ...Value) (Value, error)
- func ARRAY_IN(a, b Value) (Value, error)
- func ARRAY_LENGTH(v *ArrayValue) (Value, error)
- func ARRAY_OFFSET(v Value, idx int) (Value, error)
- func ARRAY_ORDINAL(v Value, idx int) (Value, error)
- func ARRAY_REVERSE(v *ArrayValue) (Value, error)
- func ARRAY_SAFE_OFFSET(v Value, idx int) (Value, error)
- func ARRAY_SAFE_ORDINAL(v Value, idx int) (Value, error)
- func ARRAY_TO_STRING(arr *ArrayValue, delim string, nullText ...string) (Value, error)
- func ASCII(v string) (Value, error)
- func ASIN(x Value) (Value, error)
- func ASINH(x Value) (Value, error)
- func ATAN(x Value) (Value, error)
- func ATAN2(x, y Value) (Value, error)
- func ATANH(x Value) (Value, error)
- func BETWEEN(target, start, end Value) (Value, error)
- func BIT_AND(a, b Value) (Value, error)
- func BIT_COUNT(v Value) (Value, error)
- func BIT_LEFT_SHIFT(a, b Value) (Value, error)
- func BIT_NOT(a Value) (Value, error)
- func BIT_OR(a, b Value) (Value, error)
- func BIT_RIGHT_SHIFT(a, b Value) (Value, error)
- func BIT_XOR(a, b Value) (Value, error)
- func BYTE_LENGTH(v []byte) (Value, error)
- func CAST(expr Value, fromType, toType *Type, isSafeCast bool) (Value, error)
- func CEIL(x Value) (Value, error)
- func CHAR_LENGTH(v []byte) (Value, error)
- func CHR(v int64) (Value, error)
- func COALESCE(args ...Value) (Value, error)
- func CODE_POINTS_TO_BYTES(v *ArrayValue) (Value, error)
- func CODE_POINTS_TO_STRING(v *ArrayValue) (Value, error)
- func COLLATE(v, spec string) (Value, error)
- func CONCAT(args ...Value) (Value, error)
- func CONTAINS_SUBSTR(exprValue Value, search string) (Value, error)
- func COS(x Value) (Value, error)
- func COSH(x Value) (Value, error)
- func CURRENT_DATE(zone string) (Value, error)
- func CURRENT_DATETIME(zone string) (Value, error)
- func CURRENT_DATETIME_WITH_TIME(v time.Time) (Value, error)
- func CURRENT_DATE_WITH_TIME(v time.Time) (Value, error)
- func CURRENT_TIME(zone string) (Value, error)
- func CURRENT_TIMESTAMP(zone string) (Value, error)
- func CURRENT_TIMESTAMP_WITH_TIME(v time.Time) (Value, error)
- func CURRENT_TIME_WITH_TIME(v time.Time) (Value, error)
- func CastValue(t types.Type, v Value) (Value, error)
- func DATE(args ...Value) (Value, error)
- func DATETIME(args ...Value) (Value, error)
- func DATETIME_ADD(t time.Time, v int64, part string) (Value, error)
- func DATETIME_DIFF(a, b time.Time, part string) (Value, error)
- func DATETIME_SUB(t time.Time, v int64, part string) (Value, error)
- func DATETIME_TRUNC(t time.Time, part string) (Value, error)
- func DATE_ADD(t time.Time, v int64, part string) (Value, error)
- func DATE_DIFF(a, b time.Time, part string) (Value, error)
- func DATE_FROM_UNIX_DATE(unixdate int64) (Value, error)
- func DATE_SUB(t time.Time, v int64, part string) (Value, error)
- func DATE_TRUNC(t time.Time, part string) (Value, error)
- func DISTINCT() (Value, error)
- func DIV(x, y Value) (Value, error)
- func DecodeValue(v interface{}) (Value, error)
- func ENDS_WITH(value, ends Value) (Value, error)
- func EQ(a, b Value) (Value, error)
- func EVAL_JAVASCRIPT(code string, retType *Type, argNames []string, args []Value) (Value, error)
- func EXP(x Value) (Value, error)
- func EXTRACT(v Value, part, zone string) (Value, error)
- func FARM_FINGERPRINT(v []byte) (Value, error)
- func FLOOR(x Value) (Value, error)
- func FORMAT(format string, args ...Value) (Value, error)
- func FORMAT_DATE(format string, t time.Time) (Value, error)
- func FORMAT_DATETIME(format string, t time.Time) (Value, error)
- func FORMAT_TIME(format string, t time.Time) (Value, error)
- func FORMAT_TIMESTAMP(format string, t time.Time, zone string) (Value, error)
- func FROM_BASE32(v string) (Value, error)
- func FROM_BASE64(v string) (Value, error)
- func FROM_HEX(v string) (Value, error)
- func GENERATE_ARRAY(start, end Value, step ...Value) (Value, error)
- func GENERATE_DATE_ARRAY(start, end Value, step ...Value) (Value, error)
- func GENERATE_TIMESTAMP_ARRAY(start, end Value, step int64, part string) (Value, error)
- func GENERATE_UUID() (Value, error)
- func GREATEST(args ...Value) (Value, error)
- func GT(a, b Value) (Value, error)
- func GTE(a, b Value) (Value, error)
- func HLL_COUNT_EXTRACT(sketch []byte) (Value, error)
- func IEEE_DIVIDE(x, y Value) (Value, error)
- func IF(cond, trueV, falseV Value) (Value, error)
- func IFNULL(expr, nullResult Value) (Value, error)
- func IGNORE_NULLS() (Value, error)
- func IN(a Value, values ...Value) (Value, error)
- func INITCAP(value string, delimiters []rune) (Value, error)
- func INSTR(source, search Value, position, occurrence int64) (Value, error)
- func INTERVAL(value int64, part string) (Value, error)
- func IS_DISTINCT_FROM(a, b Value) (Value, error)
- func IS_FALSE(a Value) (Value, error)
- func IS_INF(a Value) (Value, error)
- func IS_NAN(a Value) (Value, error)
- func IS_NOT_DISTINCT_FROM(a, b Value) (Value, error)
- func IS_NULL(a Value) (Value, error)
- func IS_TRUE(a Value) (Value, error)
- func JSON_EXTRACT(v, path string) (Value, error)
- func JSON_EXTRACT_ARRAY(v, path string) (Value, error)
- func JSON_EXTRACT_SCALAR(v, path string) (Value, error)
- func JSON_EXTRACT_STRING_ARRAY(v, path string) (Value, error)
- func JSON_FIELD(v, fieldName string) (Value, error)
- func JSON_QUERY(v, path string) (Value, error)
- func JSON_QUERY_ARRAY(v, path string) (Value, error)
- func JSON_SUBSCRIPT(v string, field Value) (Value, error)
- func JSON_TYPE(v JsonValue) (Value, error)
- func JSON_VALUE(v, path string) (Value, error)
- func JSON_VALUE_ARRAY(v, path string) (Value, error)
- func JUSTIFY_DAYS(v *IntervalValue) (Value, error)
- func JUSTIFY_HOURS(v *IntervalValue) (Value, error)
- func JUSTIFY_INTERVAL(v *IntervalValue) (Value, error)
- func LAST_DAY(t time.Time, part string) (Value, error)
- func LEAST(args ...Value) (Value, error)
- func LEFT(v Value, length int64) (Value, error)
- func LENGTH(v Value) (Value, error)
- func LIKE(a, b Value) (Value, error)
- func LIMIT(limit int64) (Value, error)
- func LN(x Value) (Value, error)
- func LOG(x, y Value) (Value, error)
- func LOG10(x Value) (Value, error)
- func LOWER(v Value) (Value, error)
- func LPAD(originalValue Value, returnLength int64, pattern Value) (Value, error)
- func LT(a, b Value) (Value, error)
- func LTE(a, b Value) (Value, error)
- func LTRIM(v Value, cutset string) (Value, error)
- func MAKE_ARRAY(args ...Value) (Value, error)
- func MAKE_INTERVAL(year, month, day, hour, minute, second int64) (Value, error)
- func MAKE_STRUCT(args ...Value) (Value, error)
- func MD5(v []byte) (Value, error)
- func MOD(x, y Value) (Value, error)
- func MUL(a, b Value) (Value, error)
- func NET_HOST(v string) (Value, error)
- func NET_IPV4_FROM_INT64(v int64) (Value, error)
- func NET_IPV4_TO_INT64(v []byte) (Value, error)
- func NET_IP_FROM_STRING(v string) (Value, error)
- func NET_IP_NET_MASK(output, prefix int64) (Value, error)
- func NET_IP_TO_STRING(v []byte) (Value, error)
- func NET_IP_TRUNC(v []byte, length int64) (Value, error)
- func NET_PUBLIC_SUFFIX(v string) (Value, error)
- func NET_REG_DOMAIN(v string) (Value, error)
- func NET_SAFE_IP_FROM_STRING(v string) (Value, error)
- func NORMALIZE(v, mode string) (Value, error)
- func NORMALIZE_AND_CASEFOLD(v, mode string) (Value, error)
- func NOT(a Value) (Value, error)
- func NOT_EQ(a, b Value) (Value, error)
- func NULLIF(expr, exprToMatch Value) (Value, error)
- func OP_DIV(a, b Value) (Value, error)
- func OR(args ...Value) (Value, error)
- func ORDER_BY(value Value, isAsc bool) (Value, error)
- func PARSE_BIGNUMERIC(numeric string) (Value, error)
- func PARSE_DATE(format, date string) (Value, error)
- func PARSE_DATETIME(format, date string) (Value, error)
- func PARSE_JSON(expr, mode string) (Value, error)
- func PARSE_NUMERIC(numeric string) (Value, error)
- func PARSE_TIME(format, date string) (Value, error)
- func PARSE_TIMESTAMP(format, date string) (Value, error)
- func PARSE_TIMESTAMP_WITH_TIMEZONE(format, date, zone string) (Value, error)
- func POW(x, y Value) (Value, error)
- func RAND() (Value, error)
- func RANGE_BUCKET(point Value, array *ArrayValue) (Value, error)
- func REGEXP_CONTAINS(value, expr string) (Value, error)
- func REGEXP_EXTRACT(value Value, expr string, position, occurrence int64) (Value, error)
- func REGEXP_EXTRACT_ALL(value Value, expr string) (Value, error)
- func REGEXP_INSTR(sourceValue, exprValue Value, position, occurrence, occurrencePos int64) (Value, error)
- func REGEXP_REPLACE(value, exprValue, replacementValue Value) (Value, error)
- func REPEAT(originalValue Value, repetitions int64) (Value, error)
- func REPLACE(originalValue, fromValue, toValue Value) (Value, error)
- func REVERSE(value Value) (Value, error)
- func RIGHT(value Value, length int64) (Value, error)
- func ROUND(x Value, precision int) (Value, error)
- func RPAD(originalValue Value, returnLength int64, pattern Value) (Value, error)
- func RTRIM(value Value, cutset string) (Value, error)
- func SAFE_ADD(x, y Value) (Value, error)
- func SAFE_CONVERT_BYTES_TO_STRING(value []byte) (Value, error)
- func SAFE_DIVIDE(x, y Value) (Value, error)
- func SAFE_MULTIPLY(x, y Value) (Value, error)
- func SAFE_NEGATE(x Value) (Value, error)
- func SAFE_SUBTRACT(x, y Value) (Value, error)
- func SESSION_USER() (Value, error)
- func SHA1(v []byte) (Value, error)
- func SHA256(v []byte) (Value, error)
- func SHA512(v []byte) (Value, error)
- func SIGN(a Value) (Value, error)
- func SIN(x Value) (Value, error)
- func SINH(x Value) (Value, error)
- func SOUNDEX(value string) (Value, error)
- func SPLIT(value, delimValue Value) (Value, error)
- func SQRT(x Value) (Value, error)
- func STARTS_WITH(value, starts Value) (Value, error)
- func STRING(t time.Time, zone string) (Value, error)
- func STRPOS(value, search Value) (Value, error)
- func STRUCT_FIELD(v Value, idx int) (Value, error)
- func SUB(a, b Value) (Value, error)
- func SUBSTR(value Value, pos int64, length *int64) (Value, error)
- func TAN(x Value) (Value, error)
- func TANH(x Value) (Value, error)
- func TIME(args ...Value) (Value, error)
- func TIMESTAMP(v Value, zone string) (Value, error)
- func TIMESTAMP_ADD(t time.Time, v int64, part string) (Value, error)
- func TIMESTAMP_DIFF(a, b time.Time, part string) (Value, error)
- func TIMESTAMP_MICROS(sec int64) (Value, error)
- func TIMESTAMP_MILLIS(sec int64) (Value, error)
- func TIMESTAMP_SECONDS(sec int64) (Value, error)
- func TIMESTAMP_SUB(t time.Time, v int64, part string) (Value, error)
- func TIMESTAMP_TRUNC(t time.Time, part, zone string) (Value, error)
- func TIME_ADD(t time.Time, v int64, part string) (Value, error)
- func TIME_DIFF(a, b time.Time, part string) (Value, error)
- func TIME_SUB(t time.Time, v int64, part string) (Value, error)
- func TIME_TRUNC(t time.Time, part string) (Value, error)
- func TO_BASE32(v []byte) (Value, error)
- func TO_BASE64(v []byte) (Value, error)
- func TO_CODE_POINTS(v Value) (Value, error)
- func TO_HEX(v []byte) (Value, error)
- func TO_JSON(v Value, stringifyWideNumbers bool) (Value, error)
- func TO_JSON_STRING(v Value, prettyPrint bool) (Value, error)
- func TRANSLATE(expr, source, target Value) (Value, error)
- func TRIM(v, cutsetV Value) (Value, error)
- func TRUNC(x Value) (Value, error)
- func UNICODE(v string) (Value, error)
- func UNIX_DATE(t time.Time) (Value, error)
- func UNIX_MICROS(t time.Time) (Value, error)
- func UNIX_MILLIS(t time.Time) (Value, error)
- func UNIX_SECONDS(t time.Time) (Value, error)
- func UPPER(v Value) (Value, error)
- func ValueFromGoValue(v interface{}) (Value, error)
- func ValueFromZetaSQLValue(v types.Value) (Value, error)
- func WINDOW_BOUNDARY_END(boundaryType, offset int64) (Value, error)
- func WINDOW_BOUNDARY_START(boundaryType, offset int64) (Value, error)
- func WINDOW_FRAME_UNIT(frameUnit int64) (Value, error)
- func WINDOW_ORDER_BY(value Value, isAsc bool) (Value, error)
- func WINDOW_PARTITION(partition Value) (Value, error)
- func WINDOW_ROWID(id int64) (Value, error)
- type ValueLayout
- type ValueType
- type WINDOW_ANY_VALUE
- type WINDOW_ARRAY_AGG
- type WINDOW_AVG
- type WINDOW_CORR
- type WINDOW_COUNT
- type WINDOW_COUNTIF
- type WINDOW_COUNT_STAR
- type WINDOW_COVAR_POP
- type WINDOW_COVAR_SAMP
- type WINDOW_CUME_DIST
- type WINDOW_DENSE_RANK
- type WINDOW_FIRST_VALUE
- type WINDOW_LAG
- type WINDOW_LAST_VALUE
- type WINDOW_LEAD
- type WINDOW_MAX
- type WINDOW_MIN
- type WINDOW_NTH_VALUE
- type WINDOW_NTILE
- type WINDOW_PERCENTILE_CONT
- type WINDOW_PERCENTILE_DISC
- type WINDOW_PERCENT_RANK
- type WINDOW_RANK
- type WINDOW_ROW_NUMBER
- type WINDOW_STDDEV
- type WINDOW_STDDEV_POP
- type WINDOW_STDDEV_SAMP
- type WINDOW_STRING_AGG
- type WINDOW_SUM
- type WINDOW_VARIANCE
- type WINDOW_VAR_POP
- type WINDOW_VAR_SAMP
- type WildcardTable
- func (t *WildcardTable) AnonymizationInfo() *types.AnonymizationInfo
- func (t *WildcardTable) Column(idx int) types.Column
- func (t *WildcardTable) CreateEvaluatorTableIterator(columnIdxs []int) (*types.EvaluatorTableIterator, error)
- func (t *WildcardTable) FindColumnByName(name string) types.Column
- func (t *WildcardTable) FormatSQL(ctx context.Context) (string, error)
- func (t *WildcardTable) FullName() string
- func (t *WildcardTable) IsValueTable() bool
- func (t *WildcardTable) Name() string
- func (t *WildcardTable) NumColumns() int
- func (t *WildcardTable) PrimaryKey() []int
- func (t *WildcardTable) SerializationID() int64
- func (t *WildcardTable) SupportsAnonymization() bool
- func (t *WildcardTable) TableTypeName(mode types.ProductMode) string
- type WindowAggregator
- type WindowBindFunction
- type WindowBoundary
- type WindowBoundaryType
- type WindowFrameExprNode
- type WindowFrameNode
- type WindowFrameUnitType
- type WindowFuncAggregatedStatus
- func (s *WindowFuncAggregatedStatus) Distinct() bool
- func (s *WindowFuncAggregatedStatus) Done(cb func([]Value, int, int) error) error
- func (s *WindowFuncAggregatedStatus) FilteredValues() []*WindowOrderedValue
- func (s *WindowFuncAggregatedStatus) IgnoreNulls() bool
- func (s *WindowFuncAggregatedStatus) Partition() string
- func (s *WindowFuncAggregatedStatus) Step(value Value, status *WindowFuncStatus) error
- type WindowFuncInfo
- type WindowFuncOption
- type WindowFuncOptionType
- type WindowFuncStatus
- type WindowOrderBy
- type WindowOrderedValue
- type WindowOrderingNode
- type WindowPartitioningNode
- type WithEntryNode
- type WithPartitionColumnsNode
- type WithRefScanNode
- type WithScanNode
Constants ¶
This section is empty.
Variables ¶
View Source
var WeekPartToOffset = map[string]int{
"WEEK": 0,
"WEEK_MONDAY": 1,
"WEEK_TUESDAY": 2,
"WEEK_WEDNESDAY": 3,
"WEEK_THURSDAY": 4,
"WEEK_FRIDAY": 5,
"WEEK_SATURDAY": 6,
}
Functions ¶
func EncodeGoValue ¶ added in v0.8.0
func EncodeGoValues ¶ added in v0.8.0
func EncodeGoValues(v []interface{}, params []*ast.ParameterNode) ([]interface{}, error)
func EncodeNamedValues ¶ added in v0.4.0
func EncodeNamedValues(v []driver.NamedValue, params []*ast.ParameterNode) ([]sql.NamedArg, error)
func EncodeValue ¶ added in v0.8.0
func LiteralFromValue ¶ added in v0.8.0
func LiteralFromZetaSQLValue ¶ added in v0.8.0
func RegisterFunctions ¶
func RegisterFunctions(conn *sqlite3.SQLiteConn) error
func TimestampFromFloatValue ¶ added in v0.8.10
func TimestampFromInt64Value ¶ added in v0.8.10
Types ¶
type ANY_VALUE ¶ added in v0.12.0
type ANY_VALUE struct {
// contains filtered or unexported fields
}
type APPROX_COUNT_DISTINCT ¶ added in v0.12.0
type APPROX_COUNT_DISTINCT struct {
// contains filtered or unexported fields
}
func (*APPROX_COUNT_DISTINCT) Done ¶ added in v0.12.0
func (f *APPROX_COUNT_DISTINCT) Done() (Value, error)
func (*APPROX_COUNT_DISTINCT) Step ¶ added in v0.12.0
func (f *APPROX_COUNT_DISTINCT) Step(v Value, opt *AggregatorOption) error
type APPROX_QUANTILES ¶ added in v0.12.0
type APPROX_QUANTILES struct {
// contains filtered or unexported fields
}
func (*APPROX_QUANTILES) Done ¶ added in v0.12.0
func (f *APPROX_QUANTILES) Done() (Value, error)
func (*APPROX_QUANTILES) Step ¶ added in v0.12.0
func (f *APPROX_QUANTILES) Step(v Value, num int64, opt *AggregatorOption) error
type APPROX_TOP_COUNT ¶ added in v0.12.0
type APPROX_TOP_COUNT struct {
// contains filtered or unexported fields
}
func (*APPROX_TOP_COUNT) Done ¶ added in v0.12.0
func (f *APPROX_TOP_COUNT) Done() (Value, error)
func (*APPROX_TOP_COUNT) Step ¶ added in v0.12.0
func (f *APPROX_TOP_COUNT) Step(v Value, num int64, opt *AggregatorOption) error
type APPROX_TOP_SUM ¶ added in v0.12.0
type APPROX_TOP_SUM struct {
// contains filtered or unexported fields
}
func (*APPROX_TOP_SUM) Done ¶ added in v0.12.0
func (f *APPROX_TOP_SUM) Done() (Value, error)
func (*APPROX_TOP_SUM) Step ¶ added in v0.12.0
func (f *APPROX_TOP_SUM) Step(v, weight Value, num int64, opt *AggregatorOption) error
type ARRAY_CONCAT_AGG ¶
type ARRAY_CONCAT_AGG struct {
// contains filtered or unexported fields
}
func (*ARRAY_CONCAT_AGG) Done ¶
func (f *ARRAY_CONCAT_AGG) Done() (Value, error)
func (*ARRAY_CONCAT_AGG) Step ¶
func (f *ARRAY_CONCAT_AGG) Step(v *ArrayValue, opt *AggregatorOption) error
type AbortBatchStmtNode ¶
type AbortBatchStmtNode struct {
// contains filtered or unexported fields
}
type AddColumnActionNode ¶
type AddColumnActionNode struct {
// contains filtered or unexported fields
}
type AddConstraintActionNode ¶
type AddConstraintActionNode struct {
// contains filtered or unexported fields
}
type AddToRestricteeListActionNode ¶
type AddToRestricteeListActionNode struct {
// contains filtered or unexported fields
}
type AggregateBindFunction ¶
type AggregateBindFunction func() func() *Aggregator
type AggregateFuncInfo ¶
type AggregateFuncInfo struct { Name string BindFunc AggregateBindFunction }
type AggregateFunctionCallNode ¶
type AggregateFunctionCallNode struct {
// contains filtered or unexported fields
}
type AggregateHavingModifierNode ¶
type AggregateHavingModifierNode struct {
// contains filtered or unexported fields
}
type AggregateOrderBy ¶
func (*AggregateOrderBy) UnmarshalJSON ¶
func (a *AggregateOrderBy) UnmarshalJSON(b []byte) error
type AggregateScanNode ¶
type AggregateScanNode struct {
// contains filtered or unexported fields
}
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
func (*Aggregator) Done ¶
func (a *Aggregator) Done() (interface{}, error)
func (*Aggregator) Step ¶
func (a *Aggregator) Step(stepArgs ...interface{}) error
type AggregatorFuncOption ¶
type AggregatorFuncOption struct { Type AggregatorFuncOptionType `json:"type"` Value interface{} `json:"value"` }
func (*AggregatorFuncOption) UnmarshalJSON ¶
func (o *AggregatorFuncOption) UnmarshalJSON(b []byte) error
type AggregatorFuncOptionType ¶
type AggregatorFuncOptionType string
const ( AggregatorFuncOptionUnknown AggregatorFuncOptionType = "aggregate_unknown" AggregatorFuncOptionDistinct AggregatorFuncOptionType = "aggregate_distinct" AggregatorFuncOptionLimit AggregatorFuncOptionType = "aggregate_limit" AggregatorFuncOptionOrderBy AggregatorFuncOptionType = "aggregate_order_by" AggregatorFuncOptionIgnoreNulls AggregatorFuncOptionType = "aggregate_ignore_nulls" )
type AggregatorOption ¶
type AggregatorOption struct { Distinct bool IgnoreNulls bool Limit *int64 OrderBy []*AggregateOrderBy }
type AlterAllRowAccessPoliciesStmtNode ¶
type AlterAllRowAccessPoliciesStmtNode struct {
// contains filtered or unexported fields
}
type AlterColumnDropDefaultActionNode ¶
type AlterColumnDropDefaultActionNode struct {
// contains filtered or unexported fields
}
type AlterColumnDropNotNullActionNode ¶
type AlterColumnDropNotNullActionNode struct {
// contains filtered or unexported fields
}
type AlterColumnOptionsActionNode ¶
type AlterColumnOptionsActionNode struct {
// contains filtered or unexported fields
}
type AlterColumnSetDataTypeActionNode ¶
type AlterColumnSetDataTypeActionNode struct {
// contains filtered or unexported fields
}
type AlterColumnSetDefaultActionNode ¶
type AlterColumnSetDefaultActionNode struct {
// contains filtered or unexported fields
}
type AlterDatabaseStmtNode ¶
type AlterDatabaseStmtNode struct {
// contains filtered or unexported fields
}
type AlterEntityStmtNode ¶
type AlterEntityStmtNode struct {
// contains filtered or unexported fields
}
type AlterMaterializedViewStmtNode ¶
type AlterMaterializedViewStmtNode struct {
// contains filtered or unexported fields
}
type AlterPrivilegeRestrictionStmtNode ¶
type AlterPrivilegeRestrictionStmtNode struct {
// contains filtered or unexported fields
}
type AlterRowAccessPolicyStmtNode ¶
type AlterRowAccessPolicyStmtNode struct {
// contains filtered or unexported fields
}
type AlterSchemaStmtNode ¶
type AlterSchemaStmtNode struct {
// contains filtered or unexported fields
}
type AlterTableSetOptionsStmtNode ¶
type AlterTableSetOptionsStmtNode struct {
// contains filtered or unexported fields
}
type AlterTableStmtNode ¶
type AlterTableStmtNode struct {
// contains filtered or unexported fields
}
type AlterViewStmtNode ¶
type AlterViewStmtNode struct {
// contains filtered or unexported fields
}
type AnalyticFunctionCallNode ¶
type AnalyticFunctionCallNode struct {
// contains filtered or unexported fields
}
type AnalyticFunctionGroupNode ¶
type AnalyticFunctionGroupNode struct {
// contains filtered or unexported fields
}
type AnalyticScanNode ¶
type AnalyticScanNode struct {
// contains filtered or unexported fields
}
type AnalyzeStmtNode ¶
type AnalyzeStmtNode struct {
// contains filtered or unexported fields
}
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
func NewAnalyzer ¶
func (*Analyzer) AddNamePath ¶
func (*Analyzer) Analyze ¶
func (a *Analyzer) Analyze(ctx context.Context, conn *Conn, query string, args []driver.NamedValue) ([]StmtActionFunc, error)
func (*Analyzer) MaxNamePath ¶ added in v0.17.0
func (*Analyzer) SetAutoIndexMode ¶ added in v0.12.0
func (*Analyzer) SetExplainMode ¶ added in v0.12.0
func (*Analyzer) SetMaxNamePath ¶ added in v0.17.0
func (*Analyzer) SetNamePath ¶
type AnonymizedAggregateScanNode ¶
type AnonymizedAggregateScanNode struct {
// contains filtered or unexported fields
}
type ArgumentDefNode ¶
type ArgumentDefNode struct {
// contains filtered or unexported fields
}
type ArgumentListNode ¶
type ArgumentListNode struct {
// contains filtered or unexported fields
}
type ArgumentRefNode ¶
type ArgumentRefNode struct {
// contains filtered or unexported fields
}
type ArrayScanNode ¶
type ArrayScanNode struct {
// contains filtered or unexported fields
}
type ArrayValue ¶
type ArrayValue struct {
// contains filtered or unexported fields
}
func (*ArrayValue) Format ¶
func (av *ArrayValue) Format(verb rune) string
func (*ArrayValue) Interface ¶
func (av *ArrayValue) Interface() interface{}
func (*ArrayValue) ToArray ¶
func (av *ArrayValue) ToArray() (*ArrayValue, error)
func (*ArrayValue) ToBool ¶
func (av *ArrayValue) ToBool() (bool, error)
func (*ArrayValue) ToBytes ¶ added in v0.7.0
func (av *ArrayValue) ToBytes() ([]byte, error)
func (*ArrayValue) ToFloat64 ¶
func (av *ArrayValue) ToFloat64() (float64, error)
func (*ArrayValue) ToInt64 ¶
func (av *ArrayValue) ToInt64() (int64, error)
func (*ArrayValue) ToJSON ¶
func (av *ArrayValue) ToJSON() (string, error)
func (*ArrayValue) ToString ¶
func (av *ArrayValue) ToString() (string, error)
func (*ArrayValue) ToStruct ¶
func (av *ArrayValue) ToStruct() (*StructValue, error)
type AssertRowsModifiedNode ¶
type AssertRowsModifiedNode struct {
// contains filtered or unexported fields
}
type AssertStmtNode ¶
type AssertStmtNode struct {
// contains filtered or unexported fields
}
type AssignmentStmtNode ¶
type AssignmentStmtNode struct {
// contains filtered or unexported fields
}
type AuxLoadDataStmtNode ¶
type AuxLoadDataStmtNode struct {
// contains filtered or unexported fields
}
type BIT_AND_AGG ¶
type BIT_AND_AGG struct {
// contains filtered or unexported fields
}
func (*BIT_AND_AGG) Done ¶
func (f *BIT_AND_AGG) Done() (Value, error)
func (*BIT_AND_AGG) Step ¶
func (f *BIT_AND_AGG) Step(v Value, opt *AggregatorOption) error
type BIT_OR_AGG ¶
type BIT_OR_AGG struct {
// contains filtered or unexported fields
}
func (*BIT_OR_AGG) Done ¶
func (f *BIT_OR_AGG) Done() (Value, error)
func (*BIT_OR_AGG) Step ¶
func (f *BIT_OR_AGG) Step(v Value, opt *AggregatorOption) error
type BIT_XOR_AGG ¶
type BIT_XOR_AGG struct {
// contains filtered or unexported fields
}
func (*BIT_XOR_AGG) Done ¶
func (f *BIT_XOR_AGG) Done() (Value, error)
func (*BIT_XOR_AGG) Step ¶
func (f *BIT_XOR_AGG) Step(v Value, opt *AggregatorOption) error
type BeginStmtAction ¶ added in v0.8.8
type BeginStmtAction struct{}
func (*BeginStmtAction) Args ¶ added in v0.8.8
func (a *BeginStmtAction) Args() []interface{}
func (*BeginStmtAction) Cleanup ¶ added in v0.8.8
func (a *BeginStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*BeginStmtAction) ExecContext ¶ added in v0.8.8
func (*BeginStmtAction) QueryContext ¶ added in v0.8.8
type BeginStmtNode ¶
type BeginStmtNode struct {
// contains filtered or unexported fields
}
type BindFunction ¶
type BoolValue ¶
type BoolValue bool
func (BoolValue) ToArray ¶
func (bv BoolValue) ToArray() (*ArrayValue, error)
func (BoolValue) ToStruct ¶
func (bv BoolValue) ToStruct() (*StructValue, error)
type BytesValue ¶ added in v0.7.0
type BytesValue []byte
func (BytesValue) Format ¶ added in v0.7.0
func (bv BytesValue) Format(verb rune) string
func (BytesValue) Interface ¶ added in v0.7.0
func (bv BytesValue) Interface() interface{}
func (BytesValue) ToArray ¶ added in v0.7.0
func (bv BytesValue) ToArray() (*ArrayValue, error)
func (BytesValue) ToBool ¶ added in v0.7.0
func (bv BytesValue) ToBool() (bool, error)
func (BytesValue) ToBytes ¶ added in v0.7.0
func (bv BytesValue) ToBytes() ([]byte, error)
func (BytesValue) ToFloat64 ¶ added in v0.7.0
func (bv BytesValue) ToFloat64() (float64, error)
func (BytesValue) ToInt64 ¶ added in v0.7.0
func (bv BytesValue) ToInt64() (int64, error)
func (BytesValue) ToJSON ¶ added in v0.7.0
func (bv BytesValue) ToJSON() (string, error)
func (BytesValue) ToString ¶ added in v0.7.0
func (bv BytesValue) ToString() (string, error)
func (BytesValue) ToStruct ¶ added in v0.7.0
func (bv BytesValue) ToStruct() (*StructValue, error)
type COUNT_STAR ¶
type COUNT_STAR struct {
// contains filtered or unexported fields
}
func (*COUNT_STAR) Done ¶
func (f *COUNT_STAR) Done() (Value, error)
func (*COUNT_STAR) Step ¶
func (f *COUNT_STAR) Step(opt *AggregatorOption) error
type COVAR_POP ¶ added in v0.12.0
type COVAR_POP struct {
// contains filtered or unexported fields
}
type COVAR_SAMP ¶ added in v0.12.0
type COVAR_SAMP struct {
// contains filtered or unexported fields
}
func (*COVAR_SAMP) Done ¶ added in v0.12.0
func (f *COVAR_SAMP) Done() (Value, error)
func (*COVAR_SAMP) Step ¶ added in v0.12.0
func (f *COVAR_SAMP) Step(x, y Value, opt *AggregatorOption) error
type CallStmtNode ¶
type CallStmtNode struct {
// contains filtered or unexported fields
}
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func NewCatalog ¶
func (*Catalog) AddNewFunctionSpec ¶
func (*Catalog) AddNewTableSpec ¶
func (*Catalog) DeleteFunctionSpec ¶ added in v0.6.2
func (*Catalog) DeleteTableSpec ¶ added in v0.6.2
func (*Catalog) ExtendedTypeSuperTypes ¶ added in v0.9.0
func (*Catalog) FindConnection ¶ added in v0.9.0
func (c *Catalog) FindConnection(path []string) (types.Connection, error)
func (*Catalog) FindConstant ¶ added in v0.9.0
func (*Catalog) FindConversion ¶ added in v0.9.0
func (*Catalog) FindFunction ¶ added in v0.9.0
func (*Catalog) FindProcedure ¶ added in v0.9.0
func (*Catalog) FindTableValuedFunction ¶ added in v0.9.0
func (c *Catalog) FindTableValuedFunction(path []string) (types.TableValuedFunction, error)
func (*Catalog) SuggestConstant ¶ added in v0.9.0
func (*Catalog) SuggestFunction ¶ added in v0.9.0
func (*Catalog) SuggestModel ¶ added in v0.9.0
func (*Catalog) SuggestTable ¶ added in v0.9.0
func (*Catalog) SuggestTableValuedFunction ¶ added in v0.9.0
type CatalogSpecKind ¶
type CatalogSpecKind string
const ( TableSpecKind CatalogSpecKind = "table" ViewSpecKind CatalogSpecKind = "view" FunctionSpecKind CatalogSpecKind = "function" )
type ChangedCatalog ¶ added in v0.16.0
type ChangedCatalog struct { Table *ChangedTable Function *ChangedFunction }
func (*ChangedCatalog) Changed ¶ added in v0.16.0
func (c *ChangedCatalog) Changed() bool
type ChangedFunction ¶ added in v0.16.0
type ChangedFunction struct { Added []*FunctionSpec Deleted []*FunctionSpec }
func (*ChangedFunction) Changed ¶ added in v0.16.0
func (f *ChangedFunction) Changed() bool
type ChangedTable ¶ added in v0.16.0
func (*ChangedTable) Changed ¶ added in v0.16.0
func (t *ChangedTable) Changed() bool
type CheckConstraintNode ¶
type CheckConstraintNode struct {
// contains filtered or unexported fields
}
type CloneDataStmtNode ¶
type CloneDataStmtNode struct {
// contains filtered or unexported fields
}
type ColumnAnnotationsNode ¶
type ColumnAnnotationsNode struct {
// contains filtered or unexported fields
}
type ColumnDefaultValueNode ¶
type ColumnDefaultValueNode struct {
// contains filtered or unexported fields
}
type ColumnDefinitionNode ¶
type ColumnDefinitionNode struct {
// contains filtered or unexported fields
}
type ColumnHolderNode ¶
type ColumnHolderNode struct {
// contains filtered or unexported fields
}
type ColumnRefNode ¶
type ColumnRefNode struct {
// contains filtered or unexported fields
}
type ColumnSpec ¶
type ColumnSpec struct { Name string `json:"name"` Type *Type `json:"type"` IsNotNull bool `json:"isNotNull"` }
func (*ColumnSpec) SQLiteSchema ¶
func (s *ColumnSpec) SQLiteSchema() string
type CombinationFormatTimeInfo ¶ added in v0.14.0
type CombinationFormatTimeInfo struct { AvailableTypes []TimeFormatType Parse func([]rune, *time.Time) (int, error) Format func(*time.Time) ([]rune, error) }
func (*CombinationFormatTimeInfo) Available ¶ added in v0.14.0
func (i *CombinationFormatTimeInfo) Available(typ TimeFormatType) bool
type CommitStmtAction ¶ added in v0.8.8
type CommitStmtAction struct{}
func (*CommitStmtAction) Args ¶ added in v0.8.8
func (a *CommitStmtAction) Args() []interface{}
func (*CommitStmtAction) Cleanup ¶ added in v0.8.8
func (a *CommitStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*CommitStmtAction) ExecContext ¶ added in v0.8.8
func (*CommitStmtAction) QueryContext ¶ added in v0.8.8
type CommitStmtNode ¶
type CommitStmtNode struct {
// contains filtered or unexported fields
}
type ComputedColumnNode ¶
type ComputedColumnNode struct {
// contains filtered or unexported fields
}
type Conn ¶ added in v0.4.1
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) ExecContext ¶ added in v0.4.1
func (*Conn) PrepareContext ¶ added in v0.4.1
type ConnectionNode ¶
type ConnectionNode struct {
// contains filtered or unexported fields
}
type ConstantNode ¶
type ConstantNode struct {
// contains filtered or unexported fields
}
type CreateConstantStmtNode ¶
type CreateConstantStmtNode struct {
// contains filtered or unexported fields
}
type CreateDatabaseStmtNode ¶
type CreateDatabaseStmtNode struct {
// contains filtered or unexported fields
}
type CreateEntityStmtNode ¶
type CreateEntityStmtNode struct {
// contains filtered or unexported fields
}
type CreateExternalTableStmtNode ¶
type CreateExternalTableStmtNode struct {
// contains filtered or unexported fields
}
type CreateFunctionStmt ¶
type CreateFunctionStmt struct {
// contains filtered or unexported fields
}
func (*CreateFunctionStmt) Close ¶
func (s *CreateFunctionStmt) Close() error
func (*CreateFunctionStmt) NumInput ¶
func (s *CreateFunctionStmt) NumInput() int
type CreateFunctionStmtAction ¶ added in v0.8.8
type CreateFunctionStmtAction struct {
// contains filtered or unexported fields
}
func (*CreateFunctionStmtAction) Args ¶ added in v0.8.8
func (a *CreateFunctionStmtAction) Args() []interface{}
func (*CreateFunctionStmtAction) Cleanup ¶ added in v0.8.8
func (a *CreateFunctionStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*CreateFunctionStmtAction) ExecContext ¶ added in v0.8.8
func (*CreateFunctionStmtAction) QueryContext ¶ added in v0.8.8
type CreateFunctionStmtNode ¶
type CreateFunctionStmtNode struct {
// contains filtered or unexported fields
}
type CreateIndexStmtNode ¶
type CreateIndexStmtNode struct {
// contains filtered or unexported fields
}
type CreateMaterializedViewStmtNode ¶
type CreateMaterializedViewStmtNode struct {
// contains filtered or unexported fields
}
type CreateModelStmtNode ¶
type CreateModelStmtNode struct {
// contains filtered or unexported fields
}
type CreatePrivilegeRestrictionStmtNode ¶
type CreatePrivilegeRestrictionStmtNode struct {
// contains filtered or unexported fields
}
type CreateProcedureStmtNode ¶
type CreateProcedureStmtNode struct {
// contains filtered or unexported fields
}
type CreateRowAccessPolicyStmtNode ¶
type CreateRowAccessPolicyStmtNode struct {
// contains filtered or unexported fields
}
type CreateSchemaStmtNode ¶
type CreateSchemaStmtNode struct {
// contains filtered or unexported fields
}
type CreateSnapshotTableStmtNode ¶
type CreateSnapshotTableStmtNode struct {
// contains filtered or unexported fields
}
type CreateTableAsSelectStmtNode ¶
type CreateTableAsSelectStmtNode struct {
// contains filtered or unexported fields
}
type CreateTableFunctionStmtNode ¶
type CreateTableFunctionStmtNode struct {
// contains filtered or unexported fields
}
type CreateTableStmt ¶
type CreateTableStmt struct {
// contains filtered or unexported fields
}
func (*CreateTableStmt) Close ¶
func (s *CreateTableStmt) Close() error
func (*CreateTableStmt) NumInput ¶
func (s *CreateTableStmt) NumInput() int
type CreateTableStmtAction ¶ added in v0.8.8
type CreateTableStmtAction struct {
// contains filtered or unexported fields
}
func (*CreateTableStmtAction) Args ¶ added in v0.8.8
func (a *CreateTableStmtAction) Args() []interface{}
func (*CreateTableStmtAction) Cleanup ¶ added in v0.8.8
func (a *CreateTableStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*CreateTableStmtAction) ExecContext ¶ added in v0.8.8
func (*CreateTableStmtAction) QueryContext ¶ added in v0.8.8
type CreateTableStmtNode ¶
type CreateTableStmtNode struct {
// contains filtered or unexported fields
}
type CreateViewStmt ¶ added in v0.13.4
type CreateViewStmt struct {
// contains filtered or unexported fields
}
func (*CreateViewStmt) Close ¶ added in v0.13.4
func (s *CreateViewStmt) Close() error
func (*CreateViewStmt) NumInput ¶ added in v0.13.4
func (s *CreateViewStmt) NumInput() int
type CreateViewStmtAction ¶ added in v0.13.4
type CreateViewStmtAction struct {
// contains filtered or unexported fields
}
func (*CreateViewStmtAction) Args ¶ added in v0.13.4
func (a *CreateViewStmtAction) Args() []interface{}
func (*CreateViewStmtAction) Cleanup ¶ added in v0.13.4
func (a *CreateViewStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*CreateViewStmtAction) ExecContext ¶ added in v0.13.4
func (*CreateViewStmtAction) QueryContext ¶ added in v0.13.4
type CreateViewStmtNode ¶
type CreateViewStmtNode struct {
// contains filtered or unexported fields
}
type DMLDefaultNode ¶
type DMLDefaultNode struct {
// contains filtered or unexported fields
}
type DMLStmt ¶
type DMLStmt struct {
// contains filtered or unexported fields
}
func (*DMLStmt) CheckNamedValue ¶
func (s *DMLStmt) CheckNamedValue(value *driver.NamedValue) error
func (*DMLStmt) ExecContext ¶
type DMLStmtAction ¶ added in v0.8.8
type DMLStmtAction struct {
// contains filtered or unexported fields
}
func (*DMLStmtAction) Args ¶ added in v0.8.8
func (a *DMLStmtAction) Args() []interface{}
func (*DMLStmtAction) Cleanup ¶ added in v0.8.8
func (a *DMLStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*DMLStmtAction) ExecContext ¶ added in v0.8.8
func (*DMLStmtAction) QueryContext ¶ added in v0.8.8
type DMLValueNode ¶
type DMLValueNode struct {
// contains filtered or unexported fields
}
type DateValue ¶
func (DateValue) AddDateWithInterval ¶
func (DateValue) ToArray ¶
func (d DateValue) ToArray() (*ArrayValue, error)
func (DateValue) ToStruct ¶
func (d DateValue) ToStruct() (*StructValue, error)
type DatetimeValue ¶
func (DatetimeValue) Format ¶
func (d DatetimeValue) Format(verb rune) string
func (DatetimeValue) Interface ¶
func (d DatetimeValue) Interface() interface{}
func (DatetimeValue) ToArray ¶
func (d DatetimeValue) ToArray() (*ArrayValue, error)
func (DatetimeValue) ToBool ¶
func (d DatetimeValue) ToBool() (bool, error)
func (DatetimeValue) ToBytes ¶ added in v0.7.0
func (d DatetimeValue) ToBytes() ([]byte, error)
func (DatetimeValue) ToFloat64 ¶
func (d DatetimeValue) ToFloat64() (float64, error)
func (DatetimeValue) ToInt64 ¶
func (d DatetimeValue) ToInt64() (int64, error)
func (DatetimeValue) ToJSON ¶
func (d DatetimeValue) ToJSON() (string, error)
func (DatetimeValue) ToString ¶
func (d DatetimeValue) ToString() (string, error)
func (DatetimeValue) ToStruct ¶
func (d DatetimeValue) ToStruct() (*StructValue, error)
type DefineTableStmtNode ¶
type DefineTableStmtNode struct {
// contains filtered or unexported fields
}
type DeleteStmtNode ¶
type DeleteStmtNode struct {
// contains filtered or unexported fields
}
type DescribeStmtNode ¶
type DescribeStmtNode struct {
// contains filtered or unexported fields
}
type DescriptorNode ¶
type DescriptorNode struct {
// contains filtered or unexported fields
}
type DropColumnActionNode ¶
type DropColumnActionNode struct {
// contains filtered or unexported fields
}
type DropConstraintActionNode ¶
type DropConstraintActionNode struct {
// contains filtered or unexported fields
}
type DropFunctionStmtNode ¶
type DropFunctionStmtNode struct {
// contains filtered or unexported fields
}
type DropMaterializedViewStmtNode ¶
type DropMaterializedViewStmtNode struct {
// contains filtered or unexported fields
}
type DropPrimaryKeyActionNode ¶
type DropPrimaryKeyActionNode struct {
// contains filtered or unexported fields
}
type DropPrivilegeRestrictionStmtNode ¶
type DropPrivilegeRestrictionStmtNode struct {
// contains filtered or unexported fields
}
type DropRowAccessPolicyStmtNode ¶
type DropRowAccessPolicyStmtNode struct {
// contains filtered or unexported fields
}
type DropSearchIndexStmtNode ¶
type DropSearchIndexStmtNode struct {
// contains filtered or unexported fields
}
type DropSnapshotTableStmtNode ¶
type DropSnapshotTableStmtNode struct {
// contains filtered or unexported fields
}
type DropStmtAction ¶ added in v0.8.8
type DropStmtAction struct {
// contains filtered or unexported fields
}
func (*DropStmtAction) Args ¶ added in v0.8.8
func (a *DropStmtAction) Args() []interface{}
func (*DropStmtAction) Cleanup ¶ added in v0.8.8
func (a *DropStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*DropStmtAction) ExecContext ¶ added in v0.8.8
func (*DropStmtAction) QueryContext ¶ added in v0.8.8
type DropStmtNode ¶
type DropStmtNode struct {
// contains filtered or unexported fields
}
type DropTableFunctionStmtNode ¶
type DropTableFunctionStmtNode struct {
// contains filtered or unexported fields
}
type ErrorGroup ¶ added in v0.8.8
type ErrorGroup struct {
// contains filtered or unexported fields
}
func (*ErrorGroup) Add ¶ added in v0.8.8
func (eg *ErrorGroup) Add(e error)
func (*ErrorGroup) Error ¶ added in v0.8.8
func (eg *ErrorGroup) Error() string
func (*ErrorGroup) HasError ¶ added in v0.8.8
func (eg *ErrorGroup) HasError() bool
type ExecuteImmediateArgumentNode ¶
type ExecuteImmediateArgumentNode struct {
// contains filtered or unexported fields
}
type ExecuteImmediateStmtNode ¶
type ExecuteImmediateStmtNode struct {
// contains filtered or unexported fields
}
type ExplainStmtNode ¶
type ExplainStmtNode struct {
// contains filtered or unexported fields
}
type ExportDataStmtNode ¶
type ExportDataStmtNode struct {
// contains filtered or unexported fields
}
type ExportModelStmtNode ¶
type ExportModelStmtNode struct {
// contains filtered or unexported fields
}
type ExpressionColumnNode ¶
type ExpressionColumnNode struct {
// contains filtered or unexported fields
}
type ExtendedCastElementNode ¶
type ExtendedCastElementNode struct {
// contains filtered or unexported fields
}
type ExtendedCastNode ¶
type ExtendedCastNode struct {
// contains filtered or unexported fields
}
type FilterFieldArgNode ¶
type FilterFieldArgNode struct {
// contains filtered or unexported fields
}
type FilterFieldNode ¶
type FilterFieldNode struct {
// contains filtered or unexported fields
}
type FilterScanNode ¶
type FilterScanNode struct {
// contains filtered or unexported fields
}
type FilterUsingActionNode ¶
type FilterUsingActionNode struct {
// contains filtered or unexported fields
}
type FlattenNode ¶
type FlattenNode struct {
// contains filtered or unexported fields
}
type FlattenedArgNode ¶
type FlattenedArgNode struct {
// contains filtered or unexported fields
}
type FloatValue ¶
type FloatValue float64
func (FloatValue) Format ¶
func (fv FloatValue) Format(verb rune) string
func (FloatValue) Interface ¶
func (fv FloatValue) Interface() interface{}
func (FloatValue) ToArray ¶
func (fv FloatValue) ToArray() (*ArrayValue, error)
func (FloatValue) ToBool ¶
func (fv FloatValue) ToBool() (bool, error)
func (FloatValue) ToBytes ¶ added in v0.7.0
func (fv FloatValue) ToBytes() ([]byte, error)
func (FloatValue) ToFloat64 ¶
func (fv FloatValue) ToFloat64() (float64, error)
func (FloatValue) ToInt64 ¶
func (fv FloatValue) ToInt64() (int64, error)
func (FloatValue) ToJSON ¶
func (fv FloatValue) ToJSON() (string, error)
func (FloatValue) ToString ¶
func (fv FloatValue) ToString() (string, error)
func (FloatValue) ToStruct ¶
func (fv FloatValue) ToStruct() (*StructValue, error)
type ForeignKeyNode ¶
type ForeignKeyNode struct {
// contains filtered or unexported fields
}
type FormatContext ¶ added in v0.11.3
type FormatContext struct {
// contains filtered or unexported fields
}
type FormatFlag ¶ added in v0.11.3
type FormatFlag int
const ( FormatFlagNone FormatFlag = 0 FormatFlagMinus FormatFlag = 1 FormatFlagPlus FormatFlag = 2 FormatFlagSpace FormatFlag = 3 FormatFlagSharp FormatFlag = 4 FormatFlagZero FormatFlag = 5 FormatFlagQuote FormatFlag = 6 )
type FormatInfo ¶ added in v0.11.3
type FormatInfo struct {
// contains filtered or unexported fields
}
type FormatParam ¶ added in v0.11.3
type FormatParam struct {
// contains filtered or unexported fields
}
type FormatPrecision ¶ added in v0.11.3
type FormatPrecision struct {
// contains filtered or unexported fields
}
type FormatTimeInfo ¶ added in v0.5.0
type FormatTimeInfo struct { AvailableTypes []TimeFormatType Parse ParseFunction Format func(*time.Time) ([]rune, error) }
func (*FormatTimeInfo) Available ¶ added in v0.5.0
func (i *FormatTimeInfo) Available(typ TimeFormatType) bool
type FormatWidth ¶ added in v0.11.3
type FormatWidth struct {
// contains filtered or unexported fields
}
type FuncInfo ¶
type FuncInfo struct { Name string BindFunc BindFunction }
type FunctionArgumentNode ¶
type FunctionArgumentNode struct {
// contains filtered or unexported fields
}
type FunctionCallNode ¶
type FunctionCallNode struct {
// contains filtered or unexported fields
}
type FunctionSignatureHolderNode ¶
type FunctionSignatureHolderNode struct {
// contains filtered or unexported fields
}
type FunctionSpec ¶
type FunctionSpec struct { IsTemp bool `json:"isTemp"` NamePath []string `json:"name"` Language string `json:"language"` Args []*NameWithType `json:"args"` Return *Type `json:"return"` Body string `json:"body"` Code string `json:"code"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` }
func (*FunctionSpec) CallSQL ¶ added in v0.9.0
func (s *FunctionSpec) CallSQL(ctx context.Context, callNode *ast.BaseFunctionCallNode, argValues []string) (string, error)
func (*FunctionSpec) FuncName ¶
func (s *FunctionSpec) FuncName() string
func (*FunctionSpec) SQL ¶
func (s *FunctionSpec) SQL() string
type GeneratedColumnInfoNode ¶
type GeneratedColumnInfoNode struct {
// contains filtered or unexported fields
}
type GetJsonFieldNode ¶
type GetJsonFieldNode struct {
// contains filtered or unexported fields
}
type GetProtoFieldNode ¶
type GetProtoFieldNode struct {
// contains filtered or unexported fields
}
type GetStructFieldNode ¶
type GetStructFieldNode struct {
// contains filtered or unexported fields
}
type GrantStmtNode ¶
type GrantStmtNode struct {
// contains filtered or unexported fields
}
type GrantToActionNode ¶
type GrantToActionNode struct {
// contains filtered or unexported fields
}
type GroupRowsScanNode ¶
type GroupRowsScanNode struct {
// contains filtered or unexported fields
}
type GroupingSetNode ¶
type GroupingSetNode struct {
// contains filtered or unexported fields
}
type HLL_COUNT_INIT ¶ added in v0.13.0
type HLL_COUNT_INIT struct {
// contains filtered or unexported fields
}
func (*HLL_COUNT_INIT) Done ¶ added in v0.13.0
func (f *HLL_COUNT_INIT) Done() (Value, error)
func (*HLL_COUNT_INIT) Step ¶ added in v0.13.0
func (f *HLL_COUNT_INIT) Step(input Value, precision int64, opt *AggregatorOption) (e error)
type HLL_COUNT_MERGE ¶ added in v0.13.0
type HLL_COUNT_MERGE struct {
// contains filtered or unexported fields
}
func (*HLL_COUNT_MERGE) Done ¶ added in v0.13.0
func (f *HLL_COUNT_MERGE) Done() (Value, error)
func (*HLL_COUNT_MERGE) Step ¶ added in v0.13.0
func (f *HLL_COUNT_MERGE) Step(sketch []byte, opt *AggregatorOption) error
type HLL_COUNT_MERGE_PARTIAL ¶ added in v0.13.0
type HLL_COUNT_MERGE_PARTIAL struct {
// contains filtered or unexported fields
}
func (*HLL_COUNT_MERGE_PARTIAL) Done ¶ added in v0.13.0
func (f *HLL_COUNT_MERGE_PARTIAL) Done() (Value, error)
func (*HLL_COUNT_MERGE_PARTIAL) Step ¶ added in v0.13.0
func (f *HLL_COUNT_MERGE_PARTIAL) Step(sketch []byte, opt *AggregatorOption) error
type ImportStmtNode ¶
type ImportStmtNode struct {
// contains filtered or unexported fields
}
type IndexItemNode ¶
type IndexItemNode struct {
// contains filtered or unexported fields
}
type InlineLambdaNode ¶
type InlineLambdaNode struct {
// contains filtered or unexported fields
}
type InputPattern ¶ added in v0.4.1
type InputPattern int
const ( InputKeep InputPattern = 0 InputNeedsWrap InputPattern = 1 InputNeedsFrom InputPattern = 2 )
type InsertRowNode ¶
type InsertRowNode struct {
// contains filtered or unexported fields
}
type InsertStmtNode ¶
type InsertStmtNode struct {
// contains filtered or unexported fields
}
type IntValue ¶
type IntValue int64
func (IntValue) ToArray ¶
func (iv IntValue) ToArray() (*ArrayValue, error)
func (IntValue) ToStruct ¶
func (iv IntValue) ToStruct() (*StructValue, error)
type IntervalValue ¶ added in v0.8.0
type IntervalValue struct {
*bigquery.IntervalValue
}
func (*IntervalValue) Format ¶ added in v0.8.0
func (iv *IntervalValue) Format(verb rune) string
func (*IntervalValue) Interface ¶ added in v0.8.0
func (iv *IntervalValue) Interface() interface{}
func (*IntervalValue) ToArray ¶ added in v0.8.0
func (iv *IntervalValue) ToArray() (*ArrayValue, error)
func (*IntervalValue) ToBool ¶ added in v0.8.0
func (iv *IntervalValue) ToBool() (bool, error)
func (*IntervalValue) ToBytes ¶ added in v0.8.0
func (iv *IntervalValue) ToBytes() ([]byte, error)
func (*IntervalValue) ToFloat64 ¶ added in v0.8.0
func (iv *IntervalValue) ToFloat64() (float64, error)
func (*IntervalValue) ToInt64 ¶ added in v0.8.0
func (iv *IntervalValue) ToInt64() (int64, error)
func (*IntervalValue) ToJSON ¶ added in v0.8.0
func (iv *IntervalValue) ToJSON() (string, error)
func (*IntervalValue) ToString ¶ added in v0.8.0
func (iv *IntervalValue) ToString() (string, error)
func (*IntervalValue) ToStruct ¶ added in v0.8.0
func (iv *IntervalValue) ToStruct() (*StructValue, error)
type JoinScanNode ¶
type JoinScanNode struct {
// contains filtered or unexported fields
}
type JsonValue ¶ added in v0.6.3
type JsonValue string
func (JsonValue) ToArray ¶ added in v0.6.3
func (jv JsonValue) ToArray() (*ArrayValue, error)
func (JsonValue) ToStruct ¶ added in v0.6.3
func (jv JsonValue) ToStruct() (*StructValue, error)
type LOGICAL_AND ¶
type LOGICAL_AND struct {
// contains filtered or unexported fields
}
func (*LOGICAL_AND) Done ¶
func (f *LOGICAL_AND) Done() (Value, error)
func (*LOGICAL_AND) Step ¶
func (f *LOGICAL_AND) Step(cond Value, opt *AggregatorOption) error
type LOGICAL_OR ¶
type LOGICAL_OR struct {
// contains filtered or unexported fields
}
func (*LOGICAL_OR) Done ¶
func (f *LOGICAL_OR) Done() (Value, error)
func (*LOGICAL_OR) Step ¶
func (f *LOGICAL_OR) Step(cond Value, opt *AggregatorOption) error
type LetExprNode ¶
type LetExprNode struct {
// contains filtered or unexported fields
}
type LimitOffsetScanNode ¶
type LimitOffsetScanNode struct {
// contains filtered or unexported fields
}
type LiteralNode ¶
type LiteralNode struct {
// contains filtered or unexported fields
}
type MakeProtoFieldNode ¶
type MakeProtoFieldNode struct {
// contains filtered or unexported fields
}
type MakeProtoNode ¶
type MakeProtoNode struct {
// contains filtered or unexported fields
}
type MakeStructNode ¶
type MakeStructNode struct {
// contains filtered or unexported fields
}
type MergeStmtAction ¶ added in v0.8.8
type MergeStmtAction struct {
// contains filtered or unexported fields
}
func (*MergeStmtAction) Args ¶ added in v0.8.8
func (a *MergeStmtAction) Args() []interface{}
func (*MergeStmtAction) Cleanup ¶ added in v0.8.8
func (a *MergeStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*MergeStmtAction) ExecContext ¶ added in v0.8.8
func (*MergeStmtAction) QueryContext ¶ added in v0.8.8
type MergeStmtNode ¶
type MergeStmtNode struct {
// contains filtered or unexported fields
}
type MergeWhenNode ¶
type MergeWhenNode struct {
// contains filtered or unexported fields
}
type ModuleStmtNode ¶
type ModuleStmtNode struct {
// contains filtered or unexported fields
}
type Month ¶ added in v0.5.0
type Month string
const ( January Month = "January" February Month = "February" March Month = "March" April Month = "April" May Month = "May" June Month = "June" July Month = "July" August Month = "August" September Month = "September" October Month = "October" November Month = "November" December Month = "December" )
type NameAndFunc ¶ added in v0.3.1
type NameAndFunc struct { Name string Func interface{} }
type NameWithType ¶
func (*NameWithType) FunctionArgumentType ¶ added in v0.9.0
func (t *NameWithType) FunctionArgumentType() (*types.FunctionArgumentType, error)
type NumericValue ¶ added in v0.6.2
func (*NumericValue) Div ¶ added in v0.6.2
func (nv *NumericValue) Div(v Value) (ret Value, e error)
func (*NumericValue) Format ¶ added in v0.6.2
func (nv *NumericValue) Format(verb rune) string
func (*NumericValue) Interface ¶ added in v0.6.2
func (nv *NumericValue) Interface() interface{}
func (*NumericValue) ToArray ¶ added in v0.6.2
func (nv *NumericValue) ToArray() (*ArrayValue, error)
func (*NumericValue) ToBool ¶ added in v0.6.2
func (nv *NumericValue) ToBool() (bool, error)
func (*NumericValue) ToBytes ¶ added in v0.7.0
func (nv *NumericValue) ToBytes() ([]byte, error)
func (*NumericValue) ToFloat64 ¶ added in v0.6.2
func (nv *NumericValue) ToFloat64() (float64, error)
func (*NumericValue) ToInt64 ¶ added in v0.6.2
func (nv *NumericValue) ToInt64() (int64, error)
func (*NumericValue) ToJSON ¶ added in v0.6.2
func (nv *NumericValue) ToJSON() (string, error)
func (*NumericValue) ToString ¶ added in v0.6.2
func (nv *NumericValue) ToString() (string, error)
func (*NumericValue) ToStruct ¶ added in v0.6.2
func (nv *NumericValue) ToStruct() (*StructValue, error)
type ObjectUnitNode ¶
type ObjectUnitNode struct {
// contains filtered or unexported fields
}
type OptionNode ¶
type OptionNode struct {
// contains filtered or unexported fields
}
type OrderByItemNode ¶
type OrderByItemNode struct {
// contains filtered or unexported fields
}
type OrderByScanNode ¶
type OrderByScanNode struct {
// contains filtered or unexported fields
}
type OrderedValue ¶
type OrderedValue struct { OrderBy []*AggregateOrderBy Value Value }
type OutputColumnNode ¶
type OutputColumnNode struct {
// contains filtered or unexported fields
}
type ParameterNode ¶
type ParameterNode struct {
// contains filtered or unexported fields
}
type ParseFunction ¶ added in v0.19.1
type PartitionedValue ¶
type PartitionedValue struct { Partition string Value *WindowOrderedValue }
type PivotColumnNode ¶
type PivotColumnNode struct {
// contains filtered or unexported fields
}
type PivotScanNode ¶
type PivotScanNode struct {
// contains filtered or unexported fields
}
type PrimaryKeyNode ¶
type PrimaryKeyNode struct {
// contains filtered or unexported fields
}
type PrivilegeNode ¶
type PrivilegeNode struct {
// contains filtered or unexported fields
}
type ProjectScanNode ¶
type ProjectScanNode struct {
// contains filtered or unexported fields
}
type QueryStmt ¶
type QueryStmt struct {
// contains filtered or unexported fields
}
func (*QueryStmt) CheckNamedValue ¶
func (s *QueryStmt) CheckNamedValue(value *driver.NamedValue) error
func (*QueryStmt) ExecContext ¶
func (*QueryStmt) OutputColumns ¶
func (s *QueryStmt) OutputColumns() []*ColumnSpec
type QueryStmtAction ¶ added in v0.8.8
type QueryStmtAction struct {
// contains filtered or unexported fields
}
func (*QueryStmtAction) Args ¶ added in v0.8.8
func (a *QueryStmtAction) Args() []interface{}
func (*QueryStmtAction) Cleanup ¶ added in v0.8.8
func (a *QueryStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*QueryStmtAction) ExecContext ¶ added in v0.8.8
func (*QueryStmtAction) ExplainQueryPlan ¶ added in v0.12.0
func (a *QueryStmtAction) ExplainQueryPlan(ctx context.Context, conn *Conn) error
func (*QueryStmtAction) QueryContext ¶ added in v0.8.8
type QueryStmtNode ¶
type QueryStmtNode struct {
// contains filtered or unexported fields
}
func (*QueryStmtNode) FormatSQL ¶
func (n *QueryStmtNode) FormatSQL(ctx context.Context) (string, error)
FormatSQL Formats the outermost query statement that runs and produces rows of output, like a SELECT The node's `OutputColumnList()` gives user-visible column names that should be returned. There may be duplicate names, and multiple output columns may reference the same column from `Query()` https://github.com/google/zetasql/blob/master/docs/resolved_ast.md#ResolvedQueryStmt
type RecursiveRefScanNode ¶
type RecursiveRefScanNode struct {
// contains filtered or unexported fields
}
type RecursiveScanNode ¶
type RecursiveScanNode struct {
// contains filtered or unexported fields
}
type RelationArgumentScanNode ¶
type RelationArgumentScanNode struct {
// contains filtered or unexported fields
}
type RemoveFromRestricteeListActionNode ¶
type RemoveFromRestricteeListActionNode struct {
// contains filtered or unexported fields
}
type RenameColumnActionNode ¶
type RenameColumnActionNode struct {
// contains filtered or unexported fields
}
type RenameStmtNode ¶
type RenameStmtNode struct {
// contains filtered or unexported fields
}
type RenameToActionNode ¶
type RenameToActionNode struct {
// contains filtered or unexported fields
}
type ReplaceFieldItemNode ¶
type ReplaceFieldItemNode struct {
// contains filtered or unexported fields
}
type ReplaceFieldNode ¶
type ReplaceFieldNode struct {
// contains filtered or unexported fields
}
type RestrictToActionNode ¶
type RestrictToActionNode struct {
// contains filtered or unexported fields
}
type Result ¶ added in v0.16.0
type Result struct {
// contains filtered or unexported fields
}
func (*Result) ChangedCatalog ¶ added in v0.16.0
func (r *Result) ChangedCatalog() *ChangedCatalog
func (*Result) LastInsertId ¶ added in v0.16.0
func (*Result) RowsAffected ¶ added in v0.16.0
type ReturningClauseNode ¶
type ReturningClauseNode struct {
// contains filtered or unexported fields
}
type RevokeFromActionNode ¶
type RevokeFromActionNode struct {
// contains filtered or unexported fields
}
type RevokeStmtNode ¶
type RevokeStmtNode struct {
// contains filtered or unexported fields
}
type RollbackStmtNode ¶
type RollbackStmtNode struct {
// contains filtered or unexported fields
}
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) ChangedCatalog ¶ added in v0.16.0
func (r *Rows) ChangedCatalog() *ChangedCatalog
func (*Rows) ColumnTypeDatabaseTypeName ¶
func (*Rows) SetActions ¶ added in v0.8.8
func (r *Rows) SetActions(actions []StmtAction)
type RunBatchStmtNode ¶
type RunBatchStmtNode struct {
// contains filtered or unexported fields
}
type SQLiteFunction ¶
type SQLiteFunction func(...interface{}) (interface{}, error)
type STDDEV ¶ added in v0.12.0
type STDDEV = STDDEV_SAMP
type STDDEV_POP ¶ added in v0.12.0
type STDDEV_POP struct {
// contains filtered or unexported fields
}
func (*STDDEV_POP) Done ¶ added in v0.12.0
func (f *STDDEV_POP) Done() (Value, error)
func (*STDDEV_POP) Step ¶ added in v0.12.0
func (f *STDDEV_POP) Step(v Value, opt *AggregatorOption) error
type STDDEV_SAMP ¶ added in v0.12.0
type STDDEV_SAMP struct {
// contains filtered or unexported fields
}
func (*STDDEV_SAMP) Done ¶ added in v0.12.0
func (f *STDDEV_SAMP) Done() (Value, error)
func (*STDDEV_SAMP) Step ¶ added in v0.12.0
func (f *STDDEV_SAMP) Step(v Value, opt *AggregatorOption) error
type STRING_AGG ¶
type STRING_AGG struct {
// contains filtered or unexported fields
}
func (*STRING_AGG) Done ¶
func (f *STRING_AGG) Done() (Value, error)
func (*STRING_AGG) Step ¶
func (f *STRING_AGG) Step(v Value, delim string, opt *AggregatorOption) error
type SafeValue ¶ added in v0.4.1
type SafeValue struct {
// contains filtered or unexported fields
}
func (*SafeValue) ToArray ¶ added in v0.4.1
func (v *SafeValue) ToArray() (*ArrayValue, error)
func (*SafeValue) ToStruct ¶ added in v0.4.1
func (v *SafeValue) ToStruct() (*StructValue, error)
type SampleScanNode ¶
type SampleScanNode struct {
// contains filtered or unexported fields
}
type SetAsActionNode ¶
type SetAsActionNode struct {
// contains filtered or unexported fields
}
type SetCollateClauseNode ¶
type SetCollateClauseNode struct {
// contains filtered or unexported fields
}
type SetOperationItemNode ¶
type SetOperationItemNode struct {
// contains filtered or unexported fields
}
type SetOperationScanNode ¶
type SetOperationScanNode struct {
// contains filtered or unexported fields
}
type SetOptionsActionNode ¶
type SetOptionsActionNode struct {
// contains filtered or unexported fields
}
type SetTransactionStmtNode ¶
type SetTransactionStmtNode struct {
// contains filtered or unexported fields
}
type ShowStmtNode ¶
type ShowStmtNode struct {
// contains filtered or unexported fields
}
type SingleRowScanNode ¶
type SingleRowScanNode struct {
// contains filtered or unexported fields
}
type StartBatchStmtNode ¶
type StartBatchStmtNode struct {
// contains filtered or unexported fields
}
type StmtAction ¶ added in v0.8.8
type StmtActionFunc ¶ added in v0.8.8
type StmtActionFunc func() (StmtAction, error)
type StringValue ¶
type StringValue string
func (StringValue) Format ¶
func (sv StringValue) Format(verb rune) string
func (StringValue) Interface ¶
func (sv StringValue) Interface() interface{}
func (StringValue) ToArray ¶
func (sv StringValue) ToArray() (*ArrayValue, error)
func (StringValue) ToBool ¶
func (sv StringValue) ToBool() (bool, error)
func (StringValue) ToBytes ¶ added in v0.7.0
func (sv StringValue) ToBytes() ([]byte, error)
func (StringValue) ToFloat64 ¶
func (sv StringValue) ToFloat64() (float64, error)
func (StringValue) ToInt64 ¶
func (sv StringValue) ToInt64() (int64, error)
func (StringValue) ToJSON ¶
func (sv StringValue) ToJSON() (string, error)
func (StringValue) ToString ¶
func (sv StringValue) ToString() (string, error)
func (StringValue) ToStruct ¶
func (sv StringValue) ToStruct() (*StructValue, error)
type StructValue ¶
type StructValue struct {
// contains filtered or unexported fields
}
func (*StructValue) Format ¶
func (sv *StructValue) Format(verb rune) string
func (*StructValue) Interface ¶
func (sv *StructValue) Interface() interface{}
func (*StructValue) ToArray ¶
func (sv *StructValue) ToArray() (*ArrayValue, error)
func (*StructValue) ToBool ¶
func (sv *StructValue) ToBool() (bool, error)
func (*StructValue) ToBytes ¶ added in v0.7.0
func (sv *StructValue) ToBytes() ([]byte, error)
func (*StructValue) ToFloat64 ¶
func (sv *StructValue) ToFloat64() (float64, error)
func (*StructValue) ToInt64 ¶
func (sv *StructValue) ToInt64() (int64, error)
func (*StructValue) ToJSON ¶
func (sv *StructValue) ToJSON() (string, error)
func (*StructValue) ToString ¶
func (sv *StructValue) ToString() (string, error)
func (*StructValue) ToStruct ¶
func (sv *StructValue) ToStruct() (*StructValue, error)
type StructValueLayout ¶ added in v0.8.0
type StructValueLayout struct { Keys []string `json:"keys"` Values []interface{} `json:"values"` }
type SubqueryExprNode ¶
type SubqueryExprNode struct {
// contains filtered or unexported fields
}
type SystemVariableNode ¶
type SystemVariableNode struct {
// contains filtered or unexported fields
}
type TVFScanNode ¶
type TVFScanNode struct {
// contains filtered or unexported fields
}
type TableAndColumnInfoNode ¶
type TableAndColumnInfoNode struct {
// contains filtered or unexported fields
}
type TableScanNode ¶
type TableScanNode struct {
// contains filtered or unexported fields
}
type TableSpec ¶
type TableSpec struct { IsTemp bool `json:"isTemp"` IsView bool `json:"isView"` NamePath []string `json:"namePath"` Columns []*ColumnSpec `json:"columns"` PrimaryKey []string `json:"primaryKey"` CreateMode ast.CreateMode `json:"createMode"` Query string `json:"query"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` }
func (*TableSpec) Column ¶
func (s *TableSpec) Column(name string) *ColumnSpec
func (*TableSpec) SQLiteSchema ¶
type TimeFormatType ¶ added in v0.5.0
type TimeFormatType int
const ( FormatTypeDate TimeFormatType = 0 FormatTypeDatetime TimeFormatType = 1 FormatTypeTime TimeFormatType = 2 FormatTypeTimestamp TimeFormatType = 3 )
func (TimeFormatType) String ¶ added in v0.5.0
func (t TimeFormatType) String() string
type TimeParserPostProcessor ¶ added in v0.19.1
type TimeValue ¶
func (TimeValue) ToArray ¶
func (t TimeValue) ToArray() (*ArrayValue, error)
func (TimeValue) ToStruct ¶
func (t TimeValue) ToStruct() (*StructValue, error)
type TimestampValue ¶
func (TimestampValue) AddValueWithPart ¶
func (t TimestampValue) AddValueWithPart(v int64, part string) (Value, error)
func (TimestampValue) Format ¶
func (t TimestampValue) Format(verb rune) string
func (TimestampValue) Interface ¶
func (t TimestampValue) Interface() interface{}
func (TimestampValue) ToArray ¶
func (t TimestampValue) ToArray() (*ArrayValue, error)
func (TimestampValue) ToBool ¶
func (t TimestampValue) ToBool() (bool, error)
func (TimestampValue) ToBytes ¶ added in v0.7.0
func (t TimestampValue) ToBytes() ([]byte, error)
func (TimestampValue) ToFloat64 ¶
func (t TimestampValue) ToFloat64() (float64, error)
func (TimestampValue) ToInt64 ¶
func (t TimestampValue) ToInt64() (int64, error)
func (TimestampValue) ToJSON ¶
func (t TimestampValue) ToJSON() (string, error)
func (TimestampValue) ToString ¶
func (t TimestampValue) ToString() (string, error)
func (TimestampValue) ToStruct ¶
func (t TimestampValue) ToStruct() (*StructValue, error)
type TruncateStmtAction ¶ added in v0.8.8
type TruncateStmtAction struct {
// contains filtered or unexported fields
}
func (*TruncateStmtAction) Args ¶ added in v0.8.8
func (a *TruncateStmtAction) Args() []interface{}
func (*TruncateStmtAction) Cleanup ¶ added in v0.8.8
func (a *TruncateStmtAction) Cleanup(ctx context.Context, conn *Conn) error
func (*TruncateStmtAction) ExecContext ¶ added in v0.8.8
func (*TruncateStmtAction) QueryContext ¶ added in v0.8.8
type TruncateStmtNode ¶
type TruncateStmtNode struct {
// contains filtered or unexported fields
}
type Type ¶
type Type struct { Name string `json:"name"` Kind int `json:"kind"` SignatureKind types.SignatureArgumentKind `json:"signatureKind"` ElementType *Type `json:"elementType"` FieldTypes []*NameWithType `json:"fieldTypes"` }
func (*Type) AvailableAutoIndex ¶ added in v0.12.0
func (*Type) FormatType ¶ added in v0.9.0
func (*Type) FunctionArgumentType ¶ added in v0.9.0
func (t *Type) FunctionArgumentType() (*types.FunctionArgumentType, error)
type UnnestItemNode ¶
type UnnestItemNode struct {
// contains filtered or unexported fields
}
type UnpivotArgNode ¶
type UnpivotArgNode struct {
// contains filtered or unexported fields
}
type UnpivotScanNode ¶
type UnpivotScanNode struct {
// contains filtered or unexported fields
}
type UpdateArrayItemNode ¶
type UpdateArrayItemNode struct {
// contains filtered or unexported fields
}
type UpdateItemNode ¶
type UpdateItemNode struct {
// contains filtered or unexported fields
}
type UpdateStmtNode ¶
type UpdateStmtNode struct {
// contains filtered or unexported fields
}
type Value ¶
type Value interface { Add(Value) (Value, error) Sub(Value) (Value, error) Mul(Value) (Value, error) Div(Value) (Value, error) EQ(Value) (bool, error) GT(Value) (bool, error) GTE(Value) (bool, error) LT(Value) (bool, error) LTE(Value) (bool, error) ToInt64() (int64, error) ToString() (string, error) ToBytes() ([]byte, error) ToFloat64() (float64, error) ToBool() (bool, error) ToArray() (*ArrayValue, error) ToStruct() (*StructValue, error) ToJSON() (string, error) ToTime() (time.Time, error) ToRat() (*big.Rat, error) Format(verb rune) string Interface() interface{} }
func ARRAY_CONCAT ¶
func ARRAY_LENGTH ¶
func ARRAY_LENGTH(v *ArrayValue) (Value, error)
func ARRAY_REVERSE ¶
func ARRAY_REVERSE(v *ArrayValue) (Value, error)
func ARRAY_TO_STRING ¶
func ARRAY_TO_STRING(arr *ArrayValue, delim string, nullText ...string) (Value, error)
func BIT_LEFT_SHIFT ¶
func BIT_RIGHT_SHIFT ¶
func BYTE_LENGTH ¶ added in v0.7.0
func CHAR_LENGTH ¶ added in v0.7.0
func CODE_POINTS_TO_BYTES ¶ added in v0.7.0
func CODE_POINTS_TO_BYTES(v *ArrayValue) (Value, error)
func CODE_POINTS_TO_STRING ¶ added in v0.7.0
func CODE_POINTS_TO_STRING(v *ArrayValue) (Value, error)
func CONTAINS_SUBSTR ¶ added in v0.7.0
func CURRENT_DATE ¶
func CURRENT_DATETIME ¶
func CURRENT_TIME ¶
func CURRENT_TIMESTAMP ¶
func DATETIME_ADD ¶ added in v0.5.0
func DATETIME_SUB ¶ added in v0.5.0
func DATE_FROM_UNIX_DATE ¶ added in v0.5.0
func DecodeValue ¶ added in v0.8.0
func EVAL_JAVASCRIPT ¶ added in v0.10.0
func FARM_FINGERPRINT ¶ added in v0.5.0
func FORMAT_DATETIME ¶ added in v0.5.0
func FORMAT_TIMESTAMP ¶ added in v0.5.0
func FROM_BASE32 ¶ added in v0.7.0
func FROM_BASE64 ¶ added in v0.7.0
func GENERATE_UUID ¶ added in v0.5.0
func HLL_COUNT_EXTRACT ¶ added in v0.13.0
func IEEE_DIVIDE ¶
func IGNORE_NULLS ¶
func IS_DISTINCT_FROM ¶ added in v0.5.0
func IS_NOT_DISTINCT_FROM ¶ added in v0.5.0
func JSON_EXTRACT ¶ added in v0.11.0
func JSON_EXTRACT_ARRAY ¶ added in v0.11.0
func JSON_EXTRACT_SCALAR ¶ added in v0.11.0
func JSON_EXTRACT_STRING_ARRAY ¶ added in v0.11.0
func JSON_FIELD ¶ added in v0.11.0
func JSON_QUERY ¶ added in v0.11.0
func JSON_QUERY_ARRAY ¶ added in v0.11.0
func JSON_VALUE ¶ added in v0.11.0
func JSON_VALUE_ARRAY ¶ added in v0.11.0
func JUSTIFY_DAYS ¶ added in v0.8.0
func JUSTIFY_DAYS(v *IntervalValue) (Value, error)
func JUSTIFY_HOURS ¶ added in v0.8.0
func JUSTIFY_HOURS(v *IntervalValue) (Value, error)
func JUSTIFY_INTERVAL ¶ added in v0.8.0
func JUSTIFY_INTERVAL(v *IntervalValue) (Value, error)
func MAKE_ARRAY ¶ added in v0.6.5
func MAKE_INTERVAL ¶ added in v0.8.0
func MAKE_STRUCT ¶
func NET_IPV4_FROM_INT64 ¶ added in v0.15.0
func NET_IPV4_TO_INT64 ¶ added in v0.15.0
func NET_IP_FROM_STRING ¶ added in v0.15.0
func NET_IP_NET_MASK ¶ added in v0.15.0
func NET_IP_TO_STRING ¶ added in v0.15.0
func NET_PUBLIC_SUFFIX ¶ added in v0.15.0
func NET_REG_DOMAIN ¶ added in v0.15.0
func NET_SAFE_IP_FROM_STRING ¶ added in v0.15.0
func NORMALIZE_AND_CASEFOLD ¶ added in v0.7.0
func PARSE_BIGNUMERIC ¶ added in v0.8.6
func PARSE_DATE ¶ added in v0.5.0
func PARSE_DATETIME ¶ added in v0.5.0
func PARSE_JSON ¶ added in v0.11.0
func PARSE_NUMERIC ¶ added in v0.8.0
func PARSE_TIME ¶ added in v0.5.0
func PARSE_TIMESTAMP ¶ added in v0.5.0
func PARSE_TIMESTAMP_WITH_TIMEZONE ¶ added in v0.11.0
func RANGE_BUCKET ¶
func RANGE_BUCKET(point Value, array *ArrayValue) (Value, error)
func REGEXP_CONTAINS ¶ added in v0.7.0
func REGEXP_EXTRACT ¶ added in v0.7.0
func REGEXP_EXTRACT_ALL ¶ added in v0.7.0
func REGEXP_INSTR ¶ added in v0.7.0
func REGEXP_REPLACE ¶ added in v0.7.0
func SAFE_CONVERT_BYTES_TO_STRING ¶ added in v0.7.0
func SAFE_DIVIDE ¶
func SAFE_MULTIPLY ¶
func SAFE_NEGATE ¶
func SAFE_SUBTRACT ¶
func SESSION_USER ¶ added in v0.13.0
func STARTS_WITH ¶ added in v0.7.0
func TIMESTAMP_ADD ¶ added in v0.5.0
func TIMESTAMP_DIFF ¶ added in v0.5.0
func TIMESTAMP_MICROS ¶ added in v0.5.0
func TIMESTAMP_MILLIS ¶ added in v0.5.0
func TIMESTAMP_SECONDS ¶ added in v0.5.0
func TIMESTAMP_SUB ¶ added in v0.5.0
func TIMESTAMP_TRUNC ¶ added in v0.5.0
func TO_CODE_POINTS ¶ added in v0.7.0
func ValueFromGoValue ¶ added in v0.8.0
func ValueFromZetaSQLValue ¶ added in v0.8.0
func WINDOW_BOUNDARY_END ¶
func WINDOW_BOUNDARY_START ¶
func WINDOW_FRAME_UNIT ¶
func WINDOW_PARTITION ¶
func WINDOW_ROWID ¶
type ValueLayout ¶ added in v0.8.0
type ValueType ¶ added in v0.8.0
type ValueType string
const ( IntValueType ValueType = "int64" StringValueType ValueType = "string" BytesValueType ValueType = "bytes" FloatValueType ValueType = "float" NumericValueType ValueType = "numeric" BigNumericValueType ValueType = "bignumeric" BoolValueType ValueType = "bool" JsonValueType ValueType = "json" ArrayValueType ValueType = "array" StructValueType ValueType = "struct" DateValueType ValueType = "date" DatetimeValueType ValueType = "datetime" TimeValueType ValueType = "time" TimestampValueType ValueType = "timestamp" IntervalValueType ValueType = "interval" )
type WINDOW_ANY_VALUE ¶ added in v0.12.0
type WINDOW_ANY_VALUE struct { }
func (*WINDOW_ANY_VALUE) Done ¶ added in v0.12.0
func (f *WINDOW_ANY_VALUE) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_ANY_VALUE) Step ¶ added in v0.12.0
func (f *WINDOW_ANY_VALUE) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_ARRAY_AGG ¶ added in v0.12.0
type WINDOW_ARRAY_AGG struct { }
func (*WINDOW_ARRAY_AGG) Done ¶ added in v0.12.0
func (f *WINDOW_ARRAY_AGG) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_ARRAY_AGG) Step ¶ added in v0.12.0
func (f *WINDOW_ARRAY_AGG) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_AVG ¶
type WINDOW_AVG struct { }
func (*WINDOW_AVG) Done ¶
func (f *WINDOW_AVG) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_AVG) Step ¶
func (f *WINDOW_AVG) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_CORR ¶ added in v0.6.2
type WINDOW_CORR struct { }
func (*WINDOW_CORR) Done ¶ added in v0.6.2
func (f *WINDOW_CORR) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_CORR) Step ¶ added in v0.6.2
func (f *WINDOW_CORR) Step(x, y Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_COUNT ¶ added in v0.6.2
type WINDOW_COUNT struct { }
func (*WINDOW_COUNT) Done ¶ added in v0.6.2
func (f *WINDOW_COUNT) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_COUNT) Step ¶ added in v0.6.2
func (f *WINDOW_COUNT) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_COUNTIF ¶ added in v0.12.0
type WINDOW_COUNTIF struct { }
func (*WINDOW_COUNTIF) Done ¶ added in v0.12.0
func (f *WINDOW_COUNTIF) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_COUNTIF) Step ¶ added in v0.12.0
func (f *WINDOW_COUNTIF) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_COUNT_STAR ¶
type WINDOW_COUNT_STAR struct { }
func (*WINDOW_COUNT_STAR) Done ¶
func (f *WINDOW_COUNT_STAR) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_COUNT_STAR) Step ¶
func (f *WINDOW_COUNT_STAR) Step(opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_COVAR_POP ¶ added in v0.6.2
type WINDOW_COVAR_POP struct { }
func (*WINDOW_COVAR_POP) Done ¶ added in v0.6.2
func (f *WINDOW_COVAR_POP) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_COVAR_POP) Step ¶ added in v0.6.2
func (f *WINDOW_COVAR_POP) Step(x, y Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_COVAR_SAMP ¶ added in v0.6.2
type WINDOW_COVAR_SAMP struct { }
func (*WINDOW_COVAR_SAMP) Done ¶ added in v0.6.2
func (f *WINDOW_COVAR_SAMP) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_COVAR_SAMP) Step ¶ added in v0.6.2
func (f *WINDOW_COVAR_SAMP) Step(x, y Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_CUME_DIST ¶ added in v0.12.0
type WINDOW_CUME_DIST struct { }
func (*WINDOW_CUME_DIST) Done ¶ added in v0.12.0
func (f *WINDOW_CUME_DIST) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_CUME_DIST) Step ¶ added in v0.12.0
func (f *WINDOW_CUME_DIST) Step(opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_DENSE_RANK ¶ added in v0.4.0
type WINDOW_DENSE_RANK struct { }
func (*WINDOW_DENSE_RANK) Done ¶ added in v0.4.0
func (f *WINDOW_DENSE_RANK) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_DENSE_RANK) Step ¶ added in v0.4.0
func (f *WINDOW_DENSE_RANK) Step(opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_FIRST_VALUE ¶ added in v0.5.0
type WINDOW_FIRST_VALUE struct { }
func (*WINDOW_FIRST_VALUE) Done ¶ added in v0.5.0
func (f *WINDOW_FIRST_VALUE) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_FIRST_VALUE) Step ¶ added in v0.5.0
func (f *WINDOW_FIRST_VALUE) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_LAG ¶ added in v0.4.0
type WINDOW_LAG struct {
// contains filtered or unexported fields
}
func (*WINDOW_LAG) Done ¶ added in v0.4.0
func (f *WINDOW_LAG) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_LAG) Step ¶ added in v0.4.0
func (f *WINDOW_LAG) Step(v Value, offset int64, defaultValue Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_LAST_VALUE ¶
type WINDOW_LAST_VALUE struct { }
func (*WINDOW_LAST_VALUE) Done ¶
func (f *WINDOW_LAST_VALUE) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_LAST_VALUE) Step ¶
func (f *WINDOW_LAST_VALUE) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_LEAD ¶ added in v0.12.0
type WINDOW_LEAD struct {
// contains filtered or unexported fields
}
func (*WINDOW_LEAD) Done ¶ added in v0.12.0
func (f *WINDOW_LEAD) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_LEAD) Step ¶ added in v0.12.0
func (f *WINDOW_LEAD) Step(v Value, offset int64, defaultValue Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_MAX ¶ added in v0.6.2
type WINDOW_MAX struct { }
func (*WINDOW_MAX) Done ¶ added in v0.6.2
func (f *WINDOW_MAX) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_MAX) Step ¶ added in v0.6.2
func (f *WINDOW_MAX) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_MIN ¶ added in v0.6.2
type WINDOW_MIN struct { }
func (*WINDOW_MIN) Done ¶ added in v0.6.2
func (f *WINDOW_MIN) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_MIN) Step ¶ added in v0.6.2
func (f *WINDOW_MIN) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_NTH_VALUE ¶ added in v0.12.0
type WINDOW_NTH_VALUE struct {
// contains filtered or unexported fields
}
func (*WINDOW_NTH_VALUE) Done ¶ added in v0.12.0
func (f *WINDOW_NTH_VALUE) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_NTH_VALUE) Step ¶ added in v0.12.0
func (f *WINDOW_NTH_VALUE) Step(v Value, num int64, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_NTILE ¶ added in v0.12.0
type WINDOW_NTILE struct {
// contains filtered or unexported fields
}
func (*WINDOW_NTILE) Done ¶ added in v0.12.0
func (f *WINDOW_NTILE) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_NTILE) Step ¶ added in v0.12.0
func (f *WINDOW_NTILE) Step(num int64, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_PERCENTILE_CONT ¶ added in v0.12.0
type WINDOW_PERCENTILE_CONT struct {
// contains filtered or unexported fields
}
func (*WINDOW_PERCENTILE_CONT) Done ¶ added in v0.12.0
func (f *WINDOW_PERCENTILE_CONT) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_PERCENTILE_CONT) Step ¶ added in v0.12.0
func (f *WINDOW_PERCENTILE_CONT) Step(v, percentile Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_PERCENTILE_DISC ¶ added in v0.12.0
type WINDOW_PERCENTILE_DISC struct {
// contains filtered or unexported fields
}
func (*WINDOW_PERCENTILE_DISC) Done ¶ added in v0.12.0
func (f *WINDOW_PERCENTILE_DISC) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_PERCENTILE_DISC) Step ¶ added in v0.12.0
func (f *WINDOW_PERCENTILE_DISC) Step(v, percentile Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_PERCENT_RANK ¶ added in v0.12.0
type WINDOW_PERCENT_RANK struct { }
func (*WINDOW_PERCENT_RANK) Done ¶ added in v0.12.0
func (f *WINDOW_PERCENT_RANK) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_PERCENT_RANK) Step ¶ added in v0.12.0
func (f *WINDOW_PERCENT_RANK) Step(opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_RANK ¶
type WINDOW_RANK struct { }
func (*WINDOW_RANK) Done ¶
func (f *WINDOW_RANK) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_RANK) Step ¶
func (f *WINDOW_RANK) Step(opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_ROW_NUMBER ¶ added in v0.5.0
type WINDOW_ROW_NUMBER struct { }
func (*WINDOW_ROW_NUMBER) Done ¶ added in v0.5.0
func (f *WINDOW_ROW_NUMBER) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_ROW_NUMBER) Step ¶ added in v0.5.0
func (f *WINDOW_ROW_NUMBER) Step(opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_STDDEV ¶ added in v0.12.0
type WINDOW_STDDEV = WINDOW_STDDEV_SAMP
type WINDOW_STDDEV_POP ¶ added in v0.6.2
type WINDOW_STDDEV_POP struct { }
func (*WINDOW_STDDEV_POP) Done ¶ added in v0.6.2
func (f *WINDOW_STDDEV_POP) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_STDDEV_POP) Step ¶ added in v0.6.2
func (f *WINDOW_STDDEV_POP) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_STDDEV_SAMP ¶ added in v0.6.2
type WINDOW_STDDEV_SAMP struct { }
func (*WINDOW_STDDEV_SAMP) Done ¶ added in v0.6.2
func (f *WINDOW_STDDEV_SAMP) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_STDDEV_SAMP) Step ¶ added in v0.6.2
func (f *WINDOW_STDDEV_SAMP) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_STRING_AGG ¶ added in v0.12.0
type WINDOW_STRING_AGG struct {
// contains filtered or unexported fields
}
func (*WINDOW_STRING_AGG) Done ¶ added in v0.12.0
func (f *WINDOW_STRING_AGG) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_STRING_AGG) Step ¶ added in v0.12.0
func (f *WINDOW_STRING_AGG) Step(v Value, delim string, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_SUM ¶
type WINDOW_SUM struct { }
func (*WINDOW_SUM) Done ¶
func (f *WINDOW_SUM) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_SUM) Step ¶
func (f *WINDOW_SUM) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_VARIANCE ¶ added in v0.12.0
type WINDOW_VARIANCE = WINDOW_VAR_SAMP
type WINDOW_VAR_POP ¶ added in v0.6.2
type WINDOW_VAR_POP struct { }
func (*WINDOW_VAR_POP) Done ¶ added in v0.6.2
func (f *WINDOW_VAR_POP) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_VAR_POP) Step ¶ added in v0.6.2
func (f *WINDOW_VAR_POP) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WINDOW_VAR_SAMP ¶ added in v0.6.2
type WINDOW_VAR_SAMP struct { }
func (*WINDOW_VAR_SAMP) Done ¶ added in v0.6.2
func (f *WINDOW_VAR_SAMP) Done(agg *WindowFuncAggregatedStatus) (Value, error)
func (*WINDOW_VAR_SAMP) Step ¶ added in v0.6.2
func (f *WINDOW_VAR_SAMP) Step(v Value, opt *WindowFuncStatus, agg *WindowFuncAggregatedStatus) error
type WildcardTable ¶ added in v0.9.0
type WildcardTable struct {
// contains filtered or unexported fields
}
func (*WildcardTable) AnonymizationInfo ¶ added in v0.9.0
func (t *WildcardTable) AnonymizationInfo() *types.AnonymizationInfo
func (*WildcardTable) CreateEvaluatorTableIterator ¶ added in v0.9.0
func (t *WildcardTable) CreateEvaluatorTableIterator(columnIdxs []int) (*types.EvaluatorTableIterator, error)
func (*WildcardTable) FindColumnByName ¶ added in v0.9.0
func (t *WildcardTable) FindColumnByName(name string) types.Column
func (*WildcardTable) FormatSQL ¶ added in v0.9.0
func (t *WildcardTable) FormatSQL(ctx context.Context) (string, error)
func (*WildcardTable) FullName ¶ added in v0.9.0
func (t *WildcardTable) FullName() string
func (*WildcardTable) IsValueTable ¶ added in v0.9.0
func (t *WildcardTable) IsValueTable() bool
func (*WildcardTable) Name ¶ added in v0.9.0
func (t *WildcardTable) Name() string
func (*WildcardTable) NumColumns ¶ added in v0.9.0
func (t *WildcardTable) NumColumns() int
func (*WildcardTable) PrimaryKey ¶ added in v0.9.0
func (t *WildcardTable) PrimaryKey() []int
func (*WildcardTable) SerializationID ¶ added in v0.9.0
func (t *WildcardTable) SerializationID() int64
func (*WildcardTable) SupportsAnonymization ¶ added in v0.9.0
func (t *WildcardTable) SupportsAnonymization() bool
func (*WildcardTable) TableTypeName ¶ added in v0.9.0
func (t *WildcardTable) TableTypeName(mode types.ProductMode) string
type WindowAggregator ¶
type WindowAggregator struct {
// contains filtered or unexported fields
}
func (*WindowAggregator) Done ¶
func (a *WindowAggregator) Done() (interface{}, error)
func (*WindowAggregator) Step ¶
func (a *WindowAggregator) Step(stepArgs ...interface{}) error
type WindowBindFunction ¶
type WindowBindFunction func() func() *WindowAggregator
type WindowBoundary ¶
type WindowBoundary struct { Type WindowBoundaryType `json:"type"` Offset int64 `json:"offset"` }
type WindowBoundaryType ¶
type WindowBoundaryType int
const ( WindowBoundaryTypeUnknown WindowBoundaryType = 0 WindowUnboundedPrecedingType WindowBoundaryType = 1 WindowOffsetPrecedingType WindowBoundaryType = 2 WindowCurrentRowType WindowBoundaryType = 3 WindowOffsetFollowingType WindowBoundaryType = 4 WindowUnboundedFollowingType WindowBoundaryType = 5 )
type WindowFrameExprNode ¶
type WindowFrameExprNode struct {
// contains filtered or unexported fields
}
type WindowFrameNode ¶
type WindowFrameNode struct {
// contains filtered or unexported fields
}
type WindowFrameUnitType ¶
type WindowFrameUnitType int
const ( WindowFrameUnitUnknown WindowFrameUnitType = 0 WindowFrameUnitRows WindowFrameUnitType = 1 WindowFrameUnitRange WindowFrameUnitType = 2 )
type WindowFuncAggregatedStatus ¶
type WindowFuncAggregatedStatus struct { FrameUnit WindowFrameUnitType Start *WindowBoundary End *WindowBoundary RowID int64 PartitionToValuesMap map[string][]*WindowOrderedValue PartitionedValues []*PartitionedValue Values []*WindowOrderedValue SortedValues []*WindowOrderedValue // contains filtered or unexported fields }
func (*WindowFuncAggregatedStatus) Distinct ¶ added in v0.12.0
func (s *WindowFuncAggregatedStatus) Distinct() bool
func (*WindowFuncAggregatedStatus) FilteredValues ¶
func (s *WindowFuncAggregatedStatus) FilteredValues() []*WindowOrderedValue
func (*WindowFuncAggregatedStatus) IgnoreNulls ¶ added in v0.12.0
func (s *WindowFuncAggregatedStatus) IgnoreNulls() bool
func (*WindowFuncAggregatedStatus) Partition ¶
func (s *WindowFuncAggregatedStatus) Partition() string
func (*WindowFuncAggregatedStatus) Step ¶
func (s *WindowFuncAggregatedStatus) Step(value Value, status *WindowFuncStatus) error
type WindowFuncInfo ¶
type WindowFuncInfo struct { Name string BindFunc WindowBindFunction }
type WindowFuncOption ¶
type WindowFuncOption struct { Type WindowFuncOptionType `json:"type"` Value interface{} `json:"value"` }
func (*WindowFuncOption) UnmarshalJSON ¶
func (o *WindowFuncOption) UnmarshalJSON(b []byte) error
type WindowFuncOptionType ¶
type WindowFuncOptionType string
const ( WindowFuncOptionUnknown WindowFuncOptionType = "window_unknown" WindowFuncOptionFrameUnit WindowFuncOptionType = "window_frame_unit" WindowFuncOptionStart WindowFuncOptionType = "window_boundary_start" WindowFuncOptionEnd WindowFuncOptionType = "window_boundary_end" WindowFuncOptionPartition WindowFuncOptionType = "window_partition" WindowFuncOptionRowID WindowFuncOptionType = "window_rowid" WindowFuncOptionOrderBy WindowFuncOptionType = "window_order_by" )
type WindowFuncStatus ¶
type WindowFuncStatus struct { FrameUnit WindowFrameUnitType Start *WindowBoundary End *WindowBoundary Partitions []Value RowID int64 OrderBy []*WindowOrderBy }
func (*WindowFuncStatus) Partition ¶
func (s *WindowFuncStatus) Partition() (string, error)
type WindowOrderBy ¶ added in v0.4.0
func (*WindowOrderBy) UnmarshalJSON ¶ added in v0.4.0
func (w *WindowOrderBy) UnmarshalJSON(b []byte) error
type WindowOrderedValue ¶
type WindowOrderedValue struct { OrderBy []*WindowOrderBy Value Value }
type WindowOrderingNode ¶
type WindowOrderingNode struct {
// contains filtered or unexported fields
}
type WindowPartitioningNode ¶
type WindowPartitioningNode struct {
// contains filtered or unexported fields
}
type WithEntryNode ¶
type WithEntryNode struct {
// contains filtered or unexported fields
}
type WithPartitionColumnsNode ¶
type WithPartitionColumnsNode struct {
// contains filtered or unexported fields
}
type WithRefScanNode ¶
type WithRefScanNode struct {
// contains filtered or unexported fields
}
type WithScanNode ¶
type WithScanNode struct {
// contains filtered or unexported fields
}
Source Files ¶
- analyzer.go
- catalog.go
- codec.go
- conn.go
- context.go
- decoder.go
- encoder.go
- error.go
- formatter.go
- function.go
- function_aggregate.go
- function_aggregate_option.go
- function_array.go
- function_bind.go
- function_bit.go
- function_date.go
- function_datetime.go
- function_format.go
- function_hash.go
- function_interval.go
- function_javascript.go
- function_json.go
- function_math.go
- function_net.go
- function_numeric.go
- function_register.go
- function_security.go
- function_string.go
- function_time.go
- function_time_parser.go
- function_timestamp.go
- function_window.go
- function_window_option.go
- name_path.go
- node.go
- result.go
- rows.go
- spec.go
- stmt.go
- stmt_action.go
- util.go
- value.go
- wildcard_table.go
Click to show internal directories.
Click to hide internal directories.