Documentation ¶
Overview ¶
Use AWS Dynamodb as storage
Index ¶
- Constants
- func GetUUID() (string, error)
- type DynDB
- type KeyValueDB
- type RAMDB
- func (todo *RAMDB) DoWriteTransaction(t WriteTransaction) error
- func (todo *RAMDB) GetJson(key string, valueOut interface{}) error
- func (todo *RAMDB) GetStringList(key string, valueOut *[]string) error
- func (todo *RAMDB) HasKey(key string) (bool, error)
- func (todo *RAMDB) SetJson(key string, value interface{}) error
- type WriteTransaction
Constants ¶
View Source
const AppendToStrListExpr = "SET strList = list_append(strList, :AppendItems)"
View Source
const ConditionKeyDoesntExist = "attribute_not_exists(#key)"
View Source
const ConditionKeyExists = "attribute_exists(#key)"
View Source
const RenameNewItems = ":AppendItems"
View Source
const RenameTableKey = "#key"
View Source
const RequestTokenSize = 36
View Source
const StrListCreatedMarker = "<CREATED>"
View Source
const TableJsonField = "rawJson"
View Source
const TableKey = "key"
View Source
const TableStrListField = "strList"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DynDB ¶
func (*DynDB) DoWriteTransaction ¶
func (todo *DynDB) DoWriteTransaction(t WriteTransaction) error
func (*DynDB) GetStringList ¶
type KeyValueDB ¶
type RAMDB ¶
func (*RAMDB) DoWriteTransaction ¶
func (todo *RAMDB) DoWriteTransaction(t WriteTransaction) error
func (*RAMDB) GetStringList ¶
type WriteTransaction ¶
type WriteTransaction struct { // Create json items that must not already exist Creates map[string]interface{} Overwrites map[string]interface{} // Sets fields of json items SetFields map[string]map[string]interface{} // Append strings to lists of strings StrListAppends map[string][]string // Create empty lists of strings StrListCreates []string }
Click to show internal directories.
Click to hide internal directories.