add more tests

This commit is contained in:
41666 2024-10-28 19:53:57 -07:00
parent 74add408e6
commit 4a528fe85a
9 changed files with 266 additions and 55 deletions

View file

@ -11,6 +11,14 @@ import (
"github.com/avast/retry-go"
)
type IVehicleStore interface {
IsMigrated(context.Context) bool
RunMigration(context.Context, bool)
Insert(context.Context, *types.Vehicle) error
GetOne(context.Context, string) (*types.Vehicle, error)
Prune(context.Context) (int64, error)
}
type VehicleStore struct {
DB *sql.DB