Documentation ¶
Index ¶
- type InvalidArgumentNumberError
- type InvalidArgumentTypeError
- type InvalidTypeForBetweenError
- type InvalidTypeForIsError
- type MissingPlaceholderError
- type MultiplePlansWithIndexError
- type NameNotFoundError
- type NoPlausiblePlanWithIndexError
- type NodeCannotBeConvertedToQueryError
- type OperandNotANameError
- type OperandNotAnOperandError
- type PathNotSettableError
- type QueryExpr
- func (md *QueryExpr) DeleteAttribute(item models.Item) error
- func (md *QueryExpr) Equal(other *QueryExpr) bool
- func (md *QueryExpr) EvalItem(item models.Item) (types.AttributeValue, error)
- func (md *QueryExpr) HashCode() uint64
- func (md *QueryExpr) IsModifiablePath(item models.Item) bool
- func (md *QueryExpr) NameParam(name string) (string, bool)
- func (md *QueryExpr) Plan(tableInfo *models.TableInfo) (*models.QueryExecutionPlan, error)
- func (md *QueryExpr) SerializeTo(w io.Writer) error
- func (md *QueryExpr) SerializeToBytes() ([]byte, error)
- func (md *QueryExpr) SetEvalItem(item models.Item, newValue types.AttributeValue) error
- func (md *QueryExpr) String() string
- func (md *QueryExpr) ValueParam(name string) (types.AttributeValue, bool)
- func (md *QueryExpr) ValueParamOrNil(name string) types.AttributeValue
- func (md *QueryExpr) WithCurrentResultSet(currentResultSet *models.ResultSet) *QueryExpr
- func (md *QueryExpr) WithIndex(index string) *QueryExpr
- func (md *QueryExpr) WithNameParams(value map[string]string) *QueryExpr
- func (md *QueryExpr) WithValueParams(value map[string]types.AttributeValue) *QueryExpr
- type UnrecognisedFunctionError
- type ValueMustBeLiteralError
- type ValueMustBeStringError
- type ValueNotAListError
- type ValueNotAMapError
- type ValueNotConvertableToString
- type ValueNotUsableAsASubref
- type ValuesNotComparable
- type ValuesNotInnableError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidArgumentNumberError ¶
func (InvalidArgumentNumberError) Error ¶
func (e InvalidArgumentNumberError) Error() string
type InvalidArgumentTypeError ¶
func (InvalidArgumentTypeError) Error ¶
func (e InvalidArgumentTypeError) Error() string
type InvalidTypeForBetweenError ¶
type InvalidTypeForBetweenError struct {
TypeName string
}
func (InvalidTypeForBetweenError) Error ¶
func (n InvalidTypeForBetweenError) Error() string
type InvalidTypeForIsError ¶
type InvalidTypeForIsError struct {
TypeName string
}
func (InvalidTypeForIsError) Error ¶
func (n InvalidTypeForIsError) Error() string
type MissingPlaceholderError ¶
type MissingPlaceholderError struct {
Placeholder string
}
func (MissingPlaceholderError) Error ¶
func (e MissingPlaceholderError) Error() string
type MultiplePlansWithIndexError ¶
type MultiplePlansWithIndexError struct {
PossibleIndices []string
}
func (MultiplePlansWithIndexError) Error ¶
func (e MultiplePlansWithIndexError) Error() string
type NameNotFoundError ¶
type NameNotFoundError string
NameNotFoundError is returned if the given name cannot be found
func (NameNotFoundError) Error ¶
func (n NameNotFoundError) Error() string
type NoPlausiblePlanWithIndexError ¶
func (NoPlausiblePlanWithIndexError) Error ¶
func (e NoPlausiblePlanWithIndexError) Error() string
type NodeCannotBeConvertedToQueryError ¶
type NodeCannotBeConvertedToQueryError struct{}
func (NodeCannotBeConvertedToQueryError) Error ¶
func (n NodeCannotBeConvertedToQueryError) Error() string
type OperandNotANameError ¶
type OperandNotANameError string
func (OperandNotANameError) Error ¶
func (n OperandNotANameError) Error() string
type OperandNotAnOperandError ¶
type OperandNotAnOperandError struct{}
func (OperandNotAnOperandError) Error ¶
func (n OperandNotAnOperandError) Error() string
type PathNotSettableError ¶
type PathNotSettableError struct { }
func (PathNotSettableError) Error ¶
func (e PathNotSettableError) Error() string
type QueryExpr ¶
type QueryExpr struct {
// contains filtered or unexported fields
}
func (*QueryExpr) Equal ¶
Equal returns true if a query expression is equal another one. Two query expressions are equal if they have the same query and placeholder values. This is resistant to map ordering.
func (*QueryExpr) HashCode ¶
HashCode will return a hash-code for this query expression. This is to assist with determine whether two queries are the same. If two queries have the same hash code, they may be equals (this will need to be confirmed by calling Equal()). Otherwise, the queries cannot be equals.
func (*QueryExpr) SerializeToBytes ¶
func (*QueryExpr) SetEvalItem ¶
func (*QueryExpr) ValueParam ¶
func (md *QueryExpr) ValueParam(name string) (types.AttributeValue, bool)
func (*QueryExpr) ValueParamOrNil ¶
func (md *QueryExpr) ValueParamOrNil(name string) types.AttributeValue
func (*QueryExpr) WithCurrentResultSet ¶ added in v0.4.0
func (*QueryExpr) WithNameParams ¶
func (*QueryExpr) WithValueParams ¶
func (md *QueryExpr) WithValueParams(value map[string]types.AttributeValue) *QueryExpr
type UnrecognisedFunctionError ¶
type UnrecognisedFunctionError struct {
Name string
}
func (UnrecognisedFunctionError) Error ¶
func (e UnrecognisedFunctionError) Error() string
type ValueMustBeLiteralError ¶
type ValueMustBeLiteralError struct{}
func (ValueMustBeLiteralError) Error ¶
func (n ValueMustBeLiteralError) Error() string
type ValueMustBeStringError ¶
type ValueMustBeStringError struct{}
func (ValueMustBeStringError) Error ¶
func (n ValueMustBeStringError) Error() string
type ValueNotAListError ¶
type ValueNotAListError []string
ValueNotAListError is return if the given name is not a map
func (ValueNotAListError) Error ¶
func (n ValueNotAListError) Error() string
type ValueNotAMapError ¶
type ValueNotAMapError []string
ValueNotAMapError is return if the given name is not a map
func (ValueNotAMapError) Error ¶
func (n ValueNotAMapError) Error() string
type ValueNotConvertableToString ¶
type ValueNotConvertableToString struct {
Val types.AttributeValue
}
ValueNotConvertableToString indicates that a value is not convertable to a string
func (ValueNotConvertableToString) Error ¶
func (n ValueNotConvertableToString) Error() string
type ValueNotUsableAsASubref ¶
type ValueNotUsableAsASubref struct { }
func (ValueNotUsableAsASubref) Error ¶
func (e ValueNotUsableAsASubref) Error() string
type ValuesNotComparable ¶
type ValuesNotComparable struct {
Left, Right types.AttributeValue
}
ValuesNotComparable indicates that two values are not comparable
func (ValuesNotComparable) Error ¶
func (n ValuesNotComparable) Error() string
type ValuesNotInnableError ¶
type ValuesNotInnableError struct {
Val types.AttributeValue
}
ValuesNotInnable indicates that a values cannot be used on the right side of an in
func (ValuesNotInnableError) Error ¶
func (n ValuesNotInnableError) Error() string