Versions in this module Expand all Collapse all v1 v1.13.9 Mar 6, 2018 Changes in this version + const Binary + const BinarySet + const Boolean + const List + const Map + const Null + const Number + const NumberSet + const String + const StringSet + type Builder struct + func NewBuilder() Builder + func (b Builder) Build() (Expression, error) + func (b Builder) WithCondition(conditionBuilder ConditionBuilder) Builder + func (b Builder) WithFilter(filterBuilder ConditionBuilder) Builder + func (b Builder) WithKeyCondition(keyConditionBuilder KeyConditionBuilder) Builder + func (b Builder) WithProjection(projectionBuilder ProjectionBuilder) Builder + func (b Builder) WithUpdate(updateBuilder UpdateBuilder) Builder + type ConditionBuilder struct + func And(left, right ConditionBuilder, other ...ConditionBuilder) ConditionBuilder + func AttributeExists(nameBuilder NameBuilder) ConditionBuilder + func AttributeNotExists(nameBuilder NameBuilder) ConditionBuilder + func AttributeType(nameBuilder NameBuilder, attributeType DynamoDBAttributeType) ConditionBuilder + func BeginsWith(nameBuilder NameBuilder, prefix string) ConditionBuilder + func Between(op, lower, upper OperandBuilder) ConditionBuilder + func Contains(nameBuilder NameBuilder, substr string) ConditionBuilder + func Equal(left, right OperandBuilder) ConditionBuilder + func GreaterThan(left, right OperandBuilder) ConditionBuilder + func GreaterThanEqual(left, right OperandBuilder) ConditionBuilder + func In(left, right OperandBuilder, other ...OperandBuilder) ConditionBuilder + func LessThan(left, right OperandBuilder) ConditionBuilder + func LessThanEqual(left, right OperandBuilder) ConditionBuilder + func Not(conditionBuilder ConditionBuilder) ConditionBuilder + func NotEqual(left, right OperandBuilder) ConditionBuilder + func Or(left, right ConditionBuilder, other ...ConditionBuilder) ConditionBuilder + func (cb ConditionBuilder) And(right ConditionBuilder, other ...ConditionBuilder) ConditionBuilder + func (cb ConditionBuilder) Not() ConditionBuilder + func (cb ConditionBuilder) Or(right ConditionBuilder, other ...ConditionBuilder) ConditionBuilder + type DynamoDBAttributeType string + type Expression struct + func (e Expression) Condition() *string + func (e Expression) Filter() *string + func (e Expression) KeyCondition() *string + func (e Expression) Names() map[string]*string + func (e Expression) Projection() *string + func (e Expression) Update() *string + func (e Expression) Values() map[string]*dynamodb.AttributeValue + type InvalidParameterError struct + func (ipe InvalidParameterError) Error() string + type KeyBuilder struct + func Key(key string) KeyBuilder + func (kb KeyBuilder) BeginsWith(prefix string) KeyConditionBuilder + func (kb KeyBuilder) Between(lower, upper ValueBuilder) KeyConditionBuilder + func (kb KeyBuilder) BuildOperand() (Operand, error) + func (kb KeyBuilder) Equal(valueBuilder ValueBuilder) KeyConditionBuilder + func (kb KeyBuilder) GreaterThan(valueBuilder ValueBuilder) KeyConditionBuilder + func (kb KeyBuilder) GreaterThanEqual(valueBuilder ValueBuilder) KeyConditionBuilder + func (kb KeyBuilder) LessThan(valueBuilder ValueBuilder) KeyConditionBuilder + func (kb KeyBuilder) LessThanEqual(valueBuilder ValueBuilder) KeyConditionBuilder + type KeyConditionBuilder struct + func KeyAnd(left, right KeyConditionBuilder) KeyConditionBuilder + func KeyBeginsWith(keyBuilder KeyBuilder, prefix string) KeyConditionBuilder + func KeyBetween(keyBuilder KeyBuilder, lower, upper ValueBuilder) KeyConditionBuilder + func KeyEqual(keyBuilder KeyBuilder, valueBuilder ValueBuilder) KeyConditionBuilder + func KeyGreaterThan(keyBuilder KeyBuilder, valueBuilder ValueBuilder) KeyConditionBuilder + func KeyGreaterThanEqual(keyBuilder KeyBuilder, valueBuilder ValueBuilder) KeyConditionBuilder + func KeyLessThan(keyBuilder KeyBuilder, valueBuilder ValueBuilder) KeyConditionBuilder + func KeyLessThanEqual(keyBuilder KeyBuilder, valueBuilder ValueBuilder) KeyConditionBuilder + func (kcb KeyConditionBuilder) And(right KeyConditionBuilder) KeyConditionBuilder + type NameBuilder struct + func Name(name string) NameBuilder + func (nb NameBuilder) AttributeExists() ConditionBuilder + func (nb NameBuilder) AttributeNotExists() ConditionBuilder + func (nb NameBuilder) AttributeType(attributeType DynamoDBAttributeType) ConditionBuilder + func (nb NameBuilder) BeginsWith(prefix string) ConditionBuilder + func (nb NameBuilder) Between(lower, upper OperandBuilder) ConditionBuilder + func (nb NameBuilder) BuildOperand() (Operand, error) + func (nb NameBuilder) Contains(substr string) ConditionBuilder + func (nb NameBuilder) Equal(right OperandBuilder) ConditionBuilder + func (nb NameBuilder) GreaterThan(right OperandBuilder) ConditionBuilder + func (nb NameBuilder) GreaterThanEqual(right OperandBuilder) ConditionBuilder + func (nb NameBuilder) IfNotExists(rightOperand OperandBuilder) SetValueBuilder + func (nb NameBuilder) In(right OperandBuilder, other ...OperandBuilder) ConditionBuilder + func (nb NameBuilder) LessThan(right OperandBuilder) ConditionBuilder + func (nb NameBuilder) LessThanEqual(right OperandBuilder) ConditionBuilder + func (nb NameBuilder) ListAppend(rightOperand OperandBuilder) SetValueBuilder + func (nb NameBuilder) Minus(rightOperand OperandBuilder) SetValueBuilder + func (nb NameBuilder) NamesList(namesList ...NameBuilder) ProjectionBuilder + func (nb NameBuilder) NotEqual(right OperandBuilder) ConditionBuilder + func (nb NameBuilder) Plus(rightOperand OperandBuilder) SetValueBuilder + func (nb NameBuilder) Size() SizeBuilder + type Operand struct + type OperandBuilder interface + BuildOperand func() (Operand, error) + type ProjectionBuilder struct + func AddNames(projectionBuilder ProjectionBuilder, namesList ...NameBuilder) ProjectionBuilder + func NamesList(nameBuilder NameBuilder, namesList ...NameBuilder) ProjectionBuilder + func (pb ProjectionBuilder) AddNames(namesList ...NameBuilder) ProjectionBuilder + type SetValueBuilder struct + func IfNotExists(name NameBuilder, setValue OperandBuilder) SetValueBuilder + func ListAppend(leftOperand, rightOperand OperandBuilder) SetValueBuilder + func Minus(leftOperand, rightOperand OperandBuilder) SetValueBuilder + func Plus(leftOperand, rightOperand OperandBuilder) SetValueBuilder + func (svb SetValueBuilder) BuildOperand() (Operand, error) + type SizeBuilder struct + func Size(nameBuilder NameBuilder) SizeBuilder + func (sb SizeBuilder) Between(lower, upper OperandBuilder) ConditionBuilder + func (sb SizeBuilder) BuildOperand() (Operand, error) + func (sb SizeBuilder) Equal(right OperandBuilder) ConditionBuilder + func (sb SizeBuilder) GreaterThan(right OperandBuilder) ConditionBuilder + func (sb SizeBuilder) GreaterThanEqual(right OperandBuilder) ConditionBuilder + func (sb SizeBuilder) In(right OperandBuilder, other ...OperandBuilder) ConditionBuilder + func (sb SizeBuilder) LessThan(right OperandBuilder) ConditionBuilder + func (sb SizeBuilder) LessThanEqual(right OperandBuilder) ConditionBuilder + func (sb SizeBuilder) NotEqual(right OperandBuilder) ConditionBuilder + type UnsetParameterError struct + func (upe UnsetParameterError) Error() string + type UpdateBuilder struct + func Add(name NameBuilder, value ValueBuilder) UpdateBuilder + func Delete(name NameBuilder, value ValueBuilder) UpdateBuilder + func Remove(name NameBuilder) UpdateBuilder + func Set(name NameBuilder, operandBuilder OperandBuilder) UpdateBuilder + func (ub UpdateBuilder) Add(name NameBuilder, value ValueBuilder) UpdateBuilder + func (ub UpdateBuilder) Delete(name NameBuilder, value ValueBuilder) UpdateBuilder + func (ub UpdateBuilder) Remove(name NameBuilder) UpdateBuilder + func (ub UpdateBuilder) Set(name NameBuilder, operandBuilder OperandBuilder) UpdateBuilder + type ValueBuilder struct + func Value(value interface{}) ValueBuilder + func (vb ValueBuilder) Between(lower, upper OperandBuilder) ConditionBuilder + func (vb ValueBuilder) BuildOperand() (Operand, error) + func (vb ValueBuilder) Equal(right OperandBuilder) ConditionBuilder + func (vb ValueBuilder) GreaterThan(right OperandBuilder) ConditionBuilder + func (vb ValueBuilder) GreaterThanEqual(right OperandBuilder) ConditionBuilder + func (vb ValueBuilder) In(right OperandBuilder, other ...OperandBuilder) ConditionBuilder + func (vb ValueBuilder) LessThan(right OperandBuilder) ConditionBuilder + func (vb ValueBuilder) LessThanEqual(right OperandBuilder) ConditionBuilder + func (vb ValueBuilder) ListAppend(rightOperand OperandBuilder) SetValueBuilder + func (vb ValueBuilder) Minus(rightOperand OperandBuilder) SetValueBuilder + func (vb ValueBuilder) NotEqual(right OperandBuilder) ConditionBuilder + func (vb ValueBuilder) Plus(rightOperand OperandBuilder) SetValueBuilder