Documentation ¶
Overview ¶
Package db provides CRUD operations
Package db provides CRUD operations ¶
Package db provides CRUD operations ¶
Package db provides CRUD operations ¶
Package db provides CRUD operations
Index ¶
- Variables
- func CheckCollision(m, exception models.Motion) (models.Motion, bool)
- func Connect()
- func Create(m models.Motion) error
- func Delete(id string) error
- func Disconnect() error
- func IncMotionUsage(m models.Motion) error
- func ReadAll() (m []models.Motion, err error)
- func ReadOne(search string) (models.Motion, error)
- func Update(id string, newMotion models.Motion) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidValueType = errors.New("internal error, invalid value type")
Functions ¶
func CheckCollision ¶
CheckCollision checks the unique of the motion.
func IncMotionUsage ¶
IncMotionUsage increments usage of the motion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.