Documentation ¶
Index ¶
- func InterfaceSlice(slice interface{}) []interface{}
- type DBConfig
- func (dbc DBConfig) Delete(prop interface{}) (interface{}, error)
- func (dbc DBConfig) DeleteMany(data interface{}) error
- func (dbc DBConfig) FindByGsi(value string, indexName string, indexPk string, data interface{}) error
- func (dbc DBConfig) FindStartingWith(pk string, value string, data interface{}) error
- func (dbc DBConfig) Get(pk string, sk string, data interface{}) error
- func (dbc DBConfig) Save(prop interface{}) (interface{}, error)
- func (dbc DBConfig) SaveMany(data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceSlice ¶
func InterfaceSlice(slice interface{}) []interface{}
TODO: to evaluate th value of this tradeoff: this is probably a little slow but abstract the complexity for all uses of the save many function(and actually any core operation on array of interface)
Types ¶
type DBConfig ¶
type DBConfig struct { DbService *dynamodb.DynamoDB PrimaryKey string SortKey string TableName string }
func (DBConfig) DeleteMany ¶
Deletes many items to a single table
func (DBConfig) FindStartingWith ¶
Click to show internal directories.
Click to hide internal directories.