add more tests
This commit is contained in:
parent
74add408e6
commit
4a528fe85a
9 changed files with 266 additions and 55 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue