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 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.