Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("error row not found")
)
Functions ¶
This section is empty.
Types ¶
type DB ¶
type Dynamo ¶
type Dynamo[T StorableDynamo] struct { // contains filtered or unexported fields }
func CreateDynamoTable ¶
type DynamoTable ¶
type StorableDynamo ¶
type StorableDynamo interface {
GetTableId() string
}
type StorableIndex ¶
type WithIndex ¶
type WithIndex[T StorableIndex] interface { DB[T] GetBoth(key, secondary string) (T, error) GetSecondary(secondary string) ([]T, error) DeleteSpecific(key string, secondaryKey string) T GetPrimary(key string) ([]T, error) }
func CreateDBWithIndex ¶
func CreateDBWithIndex[T StorableIndex](table string, url string) (WithIndex[T], error)
Click to show internal directories.
Click to hide internal directories.