Documentation ¶
Index ¶
- Variables
- type DB
- type Delete
- type Iter
- type Marshaler
- type Operator
- type Order
- type Query
- func (q *Query) All(out interface{}) error
- func (q *Query) Consistent(on bool) *Query
- func (q *Query) Count() (int64, error)
- func (q *Query) Index(name string) *Query
- func (q *Query) Limit(limit int64) *Query
- func (q *Query) One(out interface{}) error
- func (q *Query) Order(order Order) *Query
- func (q *Query) Project(expr ...string) *Query
- func (q *Query) Range(key string, op Operator, values ...interface{}) *Query
- type Scan
- type Table
- type Unmarshaler
- type Update
- func (u *Update) Add(name string, value interface{}) *Update
- func (u *Update) Delete(name string, value interface{}) *Update
- func (u *Update) OldValue(out interface{}) error
- func (u *Update) Range(name string, value interface{}) *Update
- func (u *Update) Remove(names ...string) *Update
- func (u *Update) Run() error
- func (u *Update) Set(name string, value interface{}) *Update
- func (u *Update) Value(out interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // These are OK in key comparisons Equals Operator = Operator(aws.String("EQ")) NotEquals = Operator(aws.String("NE")) LessOrEqual = Operator(aws.String("LE")) Less = Operator(aws.String("LT")) GreaterOrEqual = Operator(aws.String("GE")) Greater = Operator(aws.String("GT")) BeginsWith = Operator(aws.String("BEGINS_WITH")) Between = Operator(aws.String("BETWEEN")) // These can't be used in key comparions IsNull Operator = Operator(aws.String("NULL")) NotNull = Operator(aws.String("NOT_NULL")) Contains = Operator(aws.String("CONTAINS")) NotContains = Operator(aws.String("NOT_CONTAINS")) In = Operator(aws.String("IN")) )
View Source
var ErrNotFound = errors.New("dynamo: no record found")
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler interface {
MarshalDynamo() (*dynamodb.AttributeValue, error)
}
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) Consistent ¶
type Table ¶
type Table struct { Name string // contains filtered or unexported fields }
type Unmarshaler ¶
type Unmarshaler interface {
UnmarshalDynamo(av *dynamodb.AttributeValue) error
}
Click to show internal directories.
Click to hide internal directories.