Documentation ¶
Index ¶
- Constants
- func Not(c Expression) negation
- type Binary
- type BinarySet
- func (Field *BinarySet) Add(a *dynamodb.AttributeValue) *UpdateExpression
- func (Field *BinarySet) AddFloat(a float64) *UpdateExpression
- func (Field *BinarySet) AddInteger(a int64) *UpdateExpression
- func (Field *BinarySet) AddString(a string) *UpdateExpression
- func (Field *BinarySet) Delete(a *dynamodb.AttributeValue) *UpdateExpression
- func (Field *BinarySet) DeleteFloat(a float64) *UpdateExpression
- func (Field *BinarySet) DeleteInteger(a int64) *UpdateExpression
- func (Field *BinarySet) DeleteString(a string) *UpdateExpression
- type Bool
- type Condition
- type DynamoDBIFace
- type DynamoDBValue
- type DynamoField
- func (p *DynamoField) Between(a interface{}, b interface{}) KeyCondition
- func (p *DynamoField) Equals(a interface{}) KeyCondition
- func (p *DynamoField) Exists() Condition
- func (p *DynamoField) GreaterThan(a interface{}) KeyCondition
- func (p *DynamoField) GreaterThanOrEq(a interface{}) KeyCondition
- func (p *DynamoField) In(elems ...interface{}) Condition
- func (d DynamoField) IsEmpty() bool
- func (p *DynamoField) LessThan(a interface{}) KeyCondition
- func (p *DynamoField) LessThanOrEq(a interface{}) KeyCondition
- func (d DynamoField) Name() string
- func (p *DynamoField) NotEquals(a interface{}) KeyCondition
- func (p *DynamoField) NotExists() Condition
- func (Field *DynamoField) RemoveField() *UpdateExpression
- func (Field *DynamoField) SetField(a interface{}, onlyIfEmpty bool) *UpdateExpression
- func (d DynamoField) Type() string
- type DynamoFieldIFace
- type DynamoTable
- func (table DynamoTable) BatchGetItem(items ...KeyValue) *batchGetInput
- func (table DynamoTable) BatchWriteItem() *batchWriteInput
- func (table DynamoTable) CreateTable() *createTable
- func (table DynamoTable) DeleteItem(key KeyValue) *deleteItemInput
- func (table DynamoTable) DeleteTable() *deleteTable
- func (table DynamoTable) GetItem(key KeyValue) *getInput
- func (table DynamoTable) PutItem(i interface{}) *putInput
- func (table DynamoTable) Query(partitionKeyCondition KeyCondition, rangeKeyCondition *KeyCondition) *QueryInput
- func (table DynamoTable) Scan() (q *ScanInput)
- func (table DynamoTable) UpdateItem(key KeyValue) *UpdateInput
- type Empty
- type Expression
- type ExpressionGroup
- type GlobalSecondaryIndex
- type KeyCondition
- type KeyValue
- type Keys
- type List
- type Loader
- type LocalSecondaryIndex
- type Map
- type Numeric
- type NumericSet
- func (Field *NumericSet) Add(a *dynamodb.AttributeValue) *UpdateExpression
- func (Field *NumericSet) AddFloat(a float64) *UpdateExpression
- func (Field *NumericSet) AddInteger(a int64) *UpdateExpression
- func (Field *NumericSet) AddString(a string) *UpdateExpression
- func (Field *NumericSet) Delete(a *dynamodb.AttributeValue) *UpdateExpression
- func (Field *NumericSet) DeleteFloat(a float64) *UpdateExpression
- func (Field *NumericSet) DeleteInteger(a int64) *UpdateExpression
- func (Field *NumericSet) DeleteString(a string) *UpdateExpression
- type QueryInput
- func (d *QueryInput) Build() *dynamodb.QueryInput
- func (d *QueryInput) ExecuteWith(ctx context.Context, db DynamoDBIFace, opts ...request.Option) (out *QueryOutput)
- func (d *QueryInput) SetAttributesToGet(fields []DynamoField) *QueryInput
- func (d *QueryInput) SetConsistentRead(c bool) *QueryInput
- func (d *QueryInput) SetFilterExpression(c Expression) *QueryInput
- func (d *QueryInput) SetGlobalIndex(idx GlobalSecondaryIndex) *QueryInput
- func (d *QueryInput) SetLimit(limit int) *QueryInput
- func (d *QueryInput) SetLocalIndex(idx LocalSecondaryIndex) *QueryInput
- func (d *QueryInput) SetPageSize(pageSize int) *QueryInput
- func (d *QueryInput) SetScanForward(forward bool) *QueryInput
- func (d *QueryInput) WithConsumedCapacityHandler(f func(*dynamodb.ConsumedCapacity)) *QueryInput
- func (d *QueryInput) WithLastEvaluatedKey(key DynamoDBValue) *QueryInput
- type QueryOutput
- func (r QueryOutput) ConditionalCheckFailed() (b bool)
- func (r QueryOutput) Error() error
- func (o *QueryOutput) Results(next func() interface{}) (err error)
- func (o *QueryOutput) ResultsList() (values []DynamoDBValue, LastEvaluatedKey DynamoDBValue, err error)
- func (o *QueryOutput) StreamWithChannel(channel interface{}) (errChan chan error)
- type ScanInput
- func (d *ScanInput) Build() *dynamodb.ScanInput
- func (d *ScanInput) ExecuteWith(ctx context.Context, db DynamoDBIFace, opts ...request.Option) (out *ScanOutput)
- func (d *ScanInput) SetAttributesToGet(fields []DynamoField) *ScanInput
- func (d *ScanInput) SetConsistentRead(c bool) *ScanInput
- func (d *ScanInput) SetFilterExpression(c Expression) *ScanInput
- func (d *ScanInput) SetGlobalIndex(idx GlobalSecondaryIndex) *ScanInput
- func (d *ScanInput) SetLimit(limit int) *ScanInput
- func (d *ScanInput) SetLocalIndex(idx LocalSecondaryIndex) *ScanInput
- func (d *ScanInput) SetPageSize(pageSize int) *ScanInput
- func (d *ScanInput) WithLastEvaluatedKey(key DynamoDBValue) *ScanInput
- type ScanOutput
- func (r ScanOutput) ConditionalCheckFailed() (b bool)
- func (r ScanOutput) Error() error
- func (o *ScanOutput) Results(next func() interface{}) (err error)
- func (o *ScanOutput) ResultsList() (values []DynamoDBValue, LastEvaluatedKey DynamoDBValue, err error)
- func (o *ScanOutput) StreamWithChannel(channel interface{}) (errChan chan error)
- type String
- type StringSet
- func (Field *StringSet) Add(a *dynamodb.AttributeValue) *UpdateExpression
- func (Field *StringSet) AddFloat(a float64) *UpdateExpression
- func (Field *StringSet) AddInteger(a int64) *UpdateExpression
- func (Field *StringSet) AddString(a string) *UpdateExpression
- func (Field *StringSet) Delete(a *dynamodb.AttributeValue) *UpdateExpression
- func (Field *StringSet) DeleteFloat(a float64) *UpdateExpression
- func (Field *StringSet) DeleteInteger(a int64) *UpdateExpression
- func (Field *StringSet) DeleteString(a string) *UpdateExpression
- type TableName
- type ToValue
- type UpdateExpression
- type UpdateInput
- func (d *UpdateInput) Build() (r *dynamodb.UpdateItemInput, err error)
- func (d *UpdateInput) ExecuteWith(ctx context.Context, dynamo DynamoDBIFace, opts ...request.Option) (out *UpdateOutput)
- func (d *UpdateInput) ReturnAllNew() *UpdateInput
- func (d *UpdateInput) ReturnAllOld() *UpdateInput
- func (d *UpdateInput) ReturnNone() *UpdateInput
- func (d *UpdateInput) ReturnUpdatedNew() *UpdateInput
- func (d *UpdateInput) ReturnUpdatedOld() *UpdateInput
- func (d *UpdateInput) SetConditionExpression(c Expression) *UpdateInput
- func (d *UpdateInput) SetUpdateExpression(exprs ...*UpdateExpression) *UpdateInput
- type UpdateOutput
Constants ¶
const ( ProjectionTypeALL = "ALL" ProjectionTypeINCLUDE = "INCLUDE" ProjectionTypeKEYS_ONLY = "KEYS_ONLY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binary ¶
type Binary struct {
// contains filtered or unexported fields
}
Binary - A binary dynamo field
func BinaryField ¶
BinaryField ... A constructor for a binary dynamo field
type BinarySet ¶
type BinarySet struct {
// contains filtered or unexported fields
}
BinarySet - A binary dynamo field
func BinarySetField ¶
BinarySetField ... A constructor for a binary set dynamo field
func (*BinarySet) Add ¶ added in v1.0.2
func (Field *BinarySet) Add(a *dynamodb.AttributeValue) *UpdateExpression
func (*BinarySet) AddFloat ¶ added in v1.0.2
func (Field *BinarySet) AddFloat(a float64) *UpdateExpression
func (*BinarySet) AddInteger ¶ added in v1.0.2
func (Field *BinarySet) AddInteger(a int64) *UpdateExpression
func (*BinarySet) AddString ¶ added in v1.0.2
func (Field *BinarySet) AddString(a string) *UpdateExpression
func (*BinarySet) Delete ¶ added in v1.0.2
func (Field *BinarySet) Delete(a *dynamodb.AttributeValue) *UpdateExpression
func (*BinarySet) DeleteFloat ¶ added in v1.0.2
func (Field *BinarySet) DeleteFloat(a float64) *UpdateExpression
func (*BinarySet) DeleteInteger ¶ added in v1.0.2
func (Field *BinarySet) DeleteInteger(a int64) *UpdateExpression
func (*BinarySet) DeleteString ¶ added in v1.0.2
func (Field *BinarySet) DeleteString(a string) *UpdateExpression
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool - A boolean dynamo field
type DynamoDBIFace ¶
type DynamoDBIFace interface { CreateTableWithContext(aws.Context, *dynamodb.CreateTableInput, ...request.Option) (*dynamodb.CreateTableOutput, error) DeleteTableWithContext(aws.Context, *dynamodb.DeleteTableInput, ...request.Option) (*dynamodb.DeleteTableOutput, error) GetItemWithContext(aws.Context, *dynamodb.GetItemInput, ...request.Option) (*dynamodb.GetItemOutput, error) BatchGetItemWithContext(aws.Context, *dynamodb.BatchGetItemInput, ...request.Option) (*dynamodb.BatchGetItemOutput, error) PutItemWithContext(aws.Context, *dynamodb.PutItemInput, ...request.Option) (*dynamodb.PutItemOutput, error) QueryWithContext(aws.Context, *dynamodb.QueryInput, ...request.Option) (*dynamodb.QueryOutput, error) ScanWithContext(aws.Context, *dynamodb.ScanInput, ...request.Option) (*dynamodb.ScanOutput, error) UpdateItemWithContext(aws.Context, *dynamodb.UpdateItemInput, ...request.Option) (*dynamodb.UpdateItemOutput, error) DeleteItemWithContext(aws.Context, *dynamodb.DeleteItemInput, ...request.Option) (*dynamodb.DeleteItemOutput, error) BatchWriteItemWithContext(aws.Context, *dynamodb.BatchWriteItemInput, ...request.Option) (*dynamodb.BatchWriteItemOutput, error) }
DynamoDBIFace is the interface to the underlying aws dynamo db api
type DynamoDBValue ¶
type DynamoDBValue map[string]*dynamodb.AttributeValue
type DynamoField ¶
type DynamoField struct {
// contains filtered or unexported fields
}
func (*DynamoField) Between ¶
func (p *DynamoField) Between(a interface{}, b interface{}) KeyCondition
func (*DynamoField) Equals ¶
func (p *DynamoField) Equals(a interface{}) KeyCondition
func (*DynamoField) Exists ¶
func (p *DynamoField) Exists() Condition
Exists constructs a existential condition filter
func (*DynamoField) GreaterThan ¶
func (p *DynamoField) GreaterThan(a interface{}) KeyCondition
func (*DynamoField) GreaterThanOrEq ¶
func (p *DynamoField) GreaterThanOrEq(a interface{}) KeyCondition
func (*DynamoField) In ¶
func (p *DynamoField) In(elems ...interface{}) Condition
In constructs a list inclusion condition filter
func (DynamoField) IsEmpty ¶
func (d DynamoField) IsEmpty() bool
func (*DynamoField) LessThan ¶
func (p *DynamoField) LessThan(a interface{}) KeyCondition
func (*DynamoField) LessThanOrEq ¶
func (p *DynamoField) LessThanOrEq(a interface{}) KeyCondition
func (DynamoField) Name ¶
func (d DynamoField) Name() string
func (*DynamoField) NotEquals ¶
func (p *DynamoField) NotEquals(a interface{}) KeyCondition
func (*DynamoField) NotExists ¶
func (p *DynamoField) NotExists() Condition
NotExists constructs a existential exclusion condition filter
func (*DynamoField) RemoveField ¶
func (Field *DynamoField) RemoveField() *UpdateExpression
RemoveField removes a dynamo Field.
func (*DynamoField) SetField ¶
func (Field *DynamoField) SetField(a interface{}, onlyIfEmpty bool) *UpdateExpression
SetField sets a dynamo Field. Set onlyIfEmpty to true if you want to prevent overwrites
func (DynamoField) Type ¶
func (d DynamoField) Type() string
type DynamoFieldIFace ¶
type DynamoTable ¶
type DynamoTable struct { Name string PartitionKey DynamoFieldIFace RangeKey DynamoFieldIFace //Optional param. If no range key set to EmptyDynamoField() GlobalSecondaryIndexes []GlobalSecondaryIndex LocalSecondaryIndexes []LocalSecondaryIndex }
DynamoTable is a static table definition representing a dynamo table
func (DynamoTable) BatchGetItem ¶
func (table DynamoTable) BatchGetItem(items ...KeyValue) *batchGetInput
BatchGetItem represents dynamo batch get item call
func (DynamoTable) BatchWriteItem ¶
func (table DynamoTable) BatchWriteItem() *batchWriteInput
BatchWriteItem represents dynamo batch write item call
func (DynamoTable) CreateTable ¶
func (table DynamoTable) CreateTable() *createTable
func (DynamoTable) DeleteItem ¶
func (table DynamoTable) DeleteItem(key KeyValue) *deleteItemInput
DeleteItemInput represents dynamo delete item call
func (DynamoTable) DeleteTable ¶
func (table DynamoTable) DeleteTable() *deleteTable
func (DynamoTable) GetItem ¶
func (table DynamoTable) GetItem(key KeyValue) *getInput
GetItem Primary constructor for creating a get item query
func (DynamoTable) PutItem ¶
func (table DynamoTable) PutItem(i interface{}) *putInput
PutItem represents dynamo put item call
func (DynamoTable) Query ¶
func (table DynamoTable) Query(partitionKeyCondition KeyCondition, rangeKeyCondition *KeyCondition) *QueryInput
QueryInput represents dynamo batch get item call
func (DynamoTable) Scan ¶
func (table DynamoTable) Scan() (q *ScanInput)
ScanOutput represents dynamo scan item call
func (DynamoTable) UpdateItem ¶
func (table DynamoTable) UpdateItem(key KeyValue) *UpdateInput
UpdateInputItem represents dynamo batch get item call
type Expression ¶
type Expression interface {
// contains filtered or unexported methods
}
Expression represents a dynamo Condition expression, i.e. And(if_empty(...), size(path) >0)
type ExpressionGroup ¶
type ExpressionGroup struct {
// contains filtered or unexported fields
}
func And ¶
func And(c ...Expression) ExpressionGroup
And represents a dynamo AND expression. All expressions are and'd together
func Or ¶
func Or(c ...Expression) ExpressionGroup
Or represents a dynamo OR expression. All expressions are or'd together
func (ExpressionGroup) String ¶
func (c ExpressionGroup) String() string
String stringifies expressions for easy debugging
type GlobalSecondaryIndex ¶
type GlobalSecondaryIndex struct { Name string PartitionKey DynamoFieldIFace RangeKey DynamoFieldIFace //Optional param. If no range key set to EmptyField ProjectionType string NonKeyAttributes []DynamoFieldIFace ReadUnits int64 WriteUnits int64 }
GlobalSecondaryIndex ... Represents a dynamo global secondary index
type KeyCondition ¶
type KeyCondition struct {
Condition
}
type KeyValue ¶
type KeyValue struct { PartitionKey interface{} RangeKey interface{} }
KeyValue ... A Key Value struct for use in GetItem and BatchWriteItem queries
type Keys ¶
type Keys *dynamodb.KeysAndAttributes
type List ¶
type List struct {
// contains filtered or unexported fields
}
List - A list dynamo field
func (*List) Append ¶
func (Field *List) Append(a interface{}) *UpdateExpression
Append appends an element to a list Field
func (*List) Remove ¶ added in v1.0.2
func (Field *List) Remove(index int) *UpdateExpression
func (*List) Set ¶ added in v1.0.2
func (Field *List) Set(index int, a interface{}) *UpdateExpression
type Loader ¶
type Loader interface {
LoadDynamoDBValue(av DynamoDBValue) (err error)
}
Loader is the interface that specifies the ability to deserialize and load data from dynamodb attrbiute value map
type LocalSecondaryIndex ¶
type LocalSecondaryIndex struct { Name string PartitionKey DynamoFieldIFace SortKey DynamoFieldIFace ProjectionType string NonKeyAttributes []DynamoFieldIFace }
LocalSecondaryIndex ... Represents a dynamo local secondary index
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map - A map dynamo field
func (*Map) Remove ¶ added in v1.0.2
func (Field *Map) Remove(key string) *UpdateExpression
RemoveKey removes an element from a map Field
func (*Map) Set ¶ added in v1.0.2
func (Field *Map) Set(key string, a interface{}) *UpdateExpression
type Numeric ¶
type Numeric struct {
// contains filtered or unexported fields
}
Numeric - A numeric dynamo field
func NumericField ¶
NumericField ... A constructor for a numeric dynamo field
func (*Numeric) Add ¶
func (Field *Numeric) Add(amount float64) *UpdateExpression
Add adds an amount to dynamo numeric Field
func (*Numeric) Decrement ¶
func (Field *Numeric) Decrement(by uint) *UpdateExpression
Decrement a numeric counter Field
func (*Numeric) Increment ¶
func (Field *Numeric) Increment(by uint) *UpdateExpression
Increment a numeric counter Field
type NumericSet ¶
type NumericSet struct {
// contains filtered or unexported fields
}
NumericSet - A numeric set dynamo field
func NumericSetField ¶
func NumericSetField(name string) NumericSet
NumericSetField ... A constructor for a numeric set dynamo field
func (*NumericSet) Add ¶ added in v1.0.2
func (Field *NumericSet) Add(a *dynamodb.AttributeValue) *UpdateExpression
func (*NumericSet) AddFloat ¶ added in v1.0.2
func (Field *NumericSet) AddFloat(a float64) *UpdateExpression
func (*NumericSet) AddInteger ¶ added in v1.0.2
func (Field *NumericSet) AddInteger(a int64) *UpdateExpression
func (*NumericSet) AddString ¶ added in v1.0.2
func (Field *NumericSet) AddString(a string) *UpdateExpression
func (*NumericSet) Delete ¶ added in v1.0.2
func (Field *NumericSet) Delete(a *dynamodb.AttributeValue) *UpdateExpression
func (*NumericSet) DeleteFloat ¶ added in v1.0.2
func (Field *NumericSet) DeleteFloat(a float64) *UpdateExpression
func (*NumericSet) DeleteInteger ¶ added in v1.0.2
func (Field *NumericSet) DeleteInteger(a int64) *UpdateExpression
func (*NumericSet) DeleteString ¶ added in v1.0.2
func (Field *NumericSet) DeleteString(a string) *UpdateExpression
type QueryInput ¶
type QueryInput struct { *dynamodb.QueryInput // contains filtered or unexported fields }
************************************************************************************* ********************************************* Query ********************************* *************************************************************************************
func (*QueryInput) Build ¶
func (d *QueryInput) Build() *dynamodb.QueryInput
func (*QueryInput) ExecuteWith ¶
func (d *QueryInput) ExecuteWith(ctx context.Context, db DynamoDBIFace, opts ...request.Option) (out *QueryOutput)
func (*QueryInput) SetAttributesToGet ¶
func (d *QueryInput) SetAttributesToGet(fields []DynamoField) *QueryInput
func (*QueryInput) SetConsistentRead ¶
func (d *QueryInput) SetConsistentRead(c bool) *QueryInput
func (*QueryInput) SetFilterExpression ¶
func (d *QueryInput) SetFilterExpression(c Expression) *QueryInput
func (*QueryInput) SetGlobalIndex ¶
func (d *QueryInput) SetGlobalIndex(idx GlobalSecondaryIndex) *QueryInput
func (*QueryInput) SetLimit ¶
func (d *QueryInput) SetLimit(limit int) *QueryInput
func (*QueryInput) SetLocalIndex ¶
func (d *QueryInput) SetLocalIndex(idx LocalSecondaryIndex) *QueryInput
func (*QueryInput) SetPageSize ¶
func (d *QueryInput) SetPageSize(pageSize int) *QueryInput
func (*QueryInput) SetScanForward ¶
func (d *QueryInput) SetScanForward(forward bool) *QueryInput
func (*QueryInput) WithConsumedCapacityHandler ¶
func (d *QueryInput) WithConsumedCapacityHandler(f func(*dynamodb.ConsumedCapacity)) *QueryInput
func (*QueryInput) WithLastEvaluatedKey ¶ added in v1.0.3
func (d *QueryInput) WithLastEvaluatedKey(key DynamoDBValue) *QueryInput
type QueryOutput ¶
type QueryOutput struct {
// contains filtered or unexported fields
}
func (QueryOutput) ConditionalCheckFailed ¶ added in v1.0.2
func (r QueryOutput) ConditionalCheckFailed() (b bool)
func (*QueryOutput) Results ¶
func (o *QueryOutput) Results(next func() interface{}) (err error)
func (*QueryOutput) ResultsList ¶ added in v1.0.3
func (o *QueryOutput) ResultsList() (values []DynamoDBValue, LastEvaluatedKey DynamoDBValue, err error)
func (*QueryOutput) StreamWithChannel ¶
func (o *QueryOutput) StreamWithChannel(channel interface{}) (errChan chan error)
type ScanInput ¶
************************************************************************************* ********************************************* Scan ********************************* *************************************************************************************
func (*ScanInput) ExecuteWith ¶
func (d *ScanInput) ExecuteWith(ctx context.Context, db DynamoDBIFace, opts ...request.Option) (out *ScanOutput)
*
** ExecuteWith ... Execute a dynamo Scan call with a passed in dynamodb instance and next item pointer ** dynamo - The underlying dynamodb api ** nextItem - The item pointer function, which is called on each new object returned from dynamodb. The function SHOULD NOT ** store each item. It should simply return an empty struct pointer. Each of which is hydrated and pushed on ** the returned channel. **
func (*ScanInput) SetAttributesToGet ¶
func (d *ScanInput) SetAttributesToGet(fields []DynamoField) *ScanInput
func (*ScanInput) SetConsistentRead ¶
func (*ScanInput) SetFilterExpression ¶
func (d *ScanInput) SetFilterExpression(c Expression) *ScanInput
func (*ScanInput) SetGlobalIndex ¶
func (d *ScanInput) SetGlobalIndex(idx GlobalSecondaryIndex) *ScanInput
func (*ScanInput) SetLocalIndex ¶
func (d *ScanInput) SetLocalIndex(idx LocalSecondaryIndex) *ScanInput
func (*ScanInput) SetPageSize ¶
func (*ScanInput) WithLastEvaluatedKey ¶ added in v1.0.3
func (d *ScanInput) WithLastEvaluatedKey(key DynamoDBValue) *ScanInput
type ScanOutput ¶
type ScanOutput struct { Error error // contains filtered or unexported fields }
func (ScanOutput) ConditionalCheckFailed ¶ added in v1.0.2
func (r ScanOutput) ConditionalCheckFailed() (b bool)
func (*ScanOutput) Results ¶
func (o *ScanOutput) Results(next func() interface{}) (err error)
func (*ScanOutput) ResultsList ¶ added in v1.0.3
func (o *ScanOutput) ResultsList() (values []DynamoDBValue, LastEvaluatedKey DynamoDBValue, err error)
func (*ScanOutput) StreamWithChannel ¶
func (o *ScanOutput) StreamWithChannel(channel interface{}) (errChan chan error)
type String ¶
type String struct {
// contains filtered or unexported fields
}
String - A string dynamo field
func StringField ¶
StringField ... A constructor for a string dynamo field
func (*String) BeginsWith ¶ added in v1.0.2
func (p *String) BeginsWith(a interface{}) KeyCondition
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
StringSet - A string set dynamo field
func StringSetField ¶
StringSetField ... A constructor for a string set dynamo field
func (*StringSet) Add ¶ added in v1.0.2
func (Field *StringSet) Add(a *dynamodb.AttributeValue) *UpdateExpression
func (*StringSet) AddFloat ¶ added in v1.0.2
func (Field *StringSet) AddFloat(a float64) *UpdateExpression
func (*StringSet) AddInteger ¶ added in v1.0.2
func (Field *StringSet) AddInteger(a int64) *UpdateExpression
func (*StringSet) AddString ¶ added in v1.0.2
func (Field *StringSet) AddString(a string) *UpdateExpression
func (*StringSet) Delete ¶ added in v1.0.2
func (Field *StringSet) Delete(a *dynamodb.AttributeValue) *UpdateExpression
func (*StringSet) DeleteFloat ¶ added in v1.0.2
func (Field *StringSet) DeleteFloat(a float64) *UpdateExpression
func (*StringSet) DeleteInteger ¶ added in v1.0.2
func (Field *StringSet) DeleteInteger(a int64) *UpdateExpression
func (*StringSet) DeleteString ¶ added in v1.0.2
func (Field *StringSet) DeleteString(a string) *UpdateExpression
type ToValue ¶
type ToValue interface {
ToDynamoDBValue() (bm interface{})
}
ToValue is the interface that specifies the ability to serialize data to a value that can be persisted in dynamodb
type UpdateExpression ¶
type UpdateExpression struct {
// contains filtered or unexported fields
}
******************************************************************************* ******************************* Update Expressions **************************** *******************************************************************************
type UpdateInput ¶
type UpdateInput struct {
// contains filtered or unexported fields
}
************************************************************************************* ********************************** UpdateItem *************************************** *************************************************************************************
func (*UpdateInput) Build ¶
func (d *UpdateInput) Build() (r *dynamodb.UpdateItemInput, err error)
func (*UpdateInput) ExecuteWith ¶
func (d *UpdateInput) ExecuteWith(ctx context.Context, dynamo DynamoDBIFace, opts ...request.Option) (out *UpdateOutput)
*
** ExecuteWith ... Execute a dynamo BatchGetItem call with a passed in dynamodb instance ** ctx - an instance of context ** dynamo - The underlying dynamodb api **
func (*UpdateInput) ReturnAllNew ¶
func (d *UpdateInput) ReturnAllNew() *UpdateInput
func (*UpdateInput) ReturnAllOld ¶
func (d *UpdateInput) ReturnAllOld() *UpdateInput
func (*UpdateInput) ReturnNone ¶
func (d *UpdateInput) ReturnNone() *UpdateInput
func (*UpdateInput) ReturnUpdatedNew ¶
func (d *UpdateInput) ReturnUpdatedNew() *UpdateInput
func (*UpdateInput) ReturnUpdatedOld ¶
func (d *UpdateInput) ReturnUpdatedOld() *UpdateInput
func (*UpdateInput) SetConditionExpression ¶
func (d *UpdateInput) SetConditionExpression(c Expression) *UpdateInput
func (*UpdateInput) SetUpdateExpression ¶
func (d *UpdateInput) SetUpdateExpression(exprs ...*UpdateExpression) *UpdateInput
type UpdateOutput ¶
type UpdateOutput struct { *dynamodb.UpdateItemOutput // contains filtered or unexported fields }
func (UpdateOutput) ConditionalCheckFailed ¶ added in v1.0.2
func (r UpdateOutput) ConditionalCheckFailed() (b bool)
func (*UpdateOutput) Result ¶
func (o *UpdateOutput) Result(item interface{}) (err error)