func NewRequestInstance() *RequestInstance {
	r := new(RequestInstance)
	r.AttributesToGet = attributestoget.NewAttributesToGet()
	r.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	r.Keys = make([]item.Item, 0)
	return r
}
Exemple #2
0
func NewGetItem() *GetItem {
	g := new(GetItem)
	g.Key = item.NewKey()
	g.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	g.AttributesToGet = make(attributestoget.AttributesToGet, 0)
	return g
}
Exemple #3
0
// NewPutJSON will return a pointer to an initialized PutItemJSON struct.
func NewPutItemJSON() *PutItemJSON {
	p := new(PutItemJSON)
	p.Expected = expected.NewExpected()
	p.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	p.ExpressionAttributeValues = attributevalue.NewAttributeValueMap()
	return p
}
Exemple #4
0
func NewDeleteItem() *DeleteItem {
	u := new(DeleteItem)
	u.Expected = expected.NewExpected()
	u.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	u.ExpressionAttributeValues = attributevalue.NewAttributeValueMap()
	u.Key = item.NewKey()
	return u
}
Exemple #5
0
func NewScan() *Scan {
	s := new(Scan)
	s.AttributesToGet = attributestoget.NewAttributesToGet()
	s.ExclusiveStartKey = attributevalue.NewAttributeValueMap()
	s.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	s.ExpressionAttributeValues = attributevalue.NewAttributeValueMap()
	s.ScanFilter = condition.NewConditions()
	return s
}
Exemple #6
0
// NewQuery returns a pointer to an instantiation of the Query struct.
func NewQuery() *Query {
	q := new(Query)
	q.AttributesToGet = attributestoget.NewAttributesToGet()
	q.ExclusiveStartKey = attributevalue.NewAttributeValueMap()
	q.ExpressionAttributeNames = expressionattributenames.NewExpressionAttributeNames()
	q.ExpressionAttributeValues = attributevalue.NewAttributeValueMap()
	q.KeyConditions = condition.NewConditions()
	q.QueryFilter = condition.NewConditions()
	return q
}