added tests for db and user
Some checks reported errors
arbeitszeitmessung/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2025-08-13 15:50:11 +02:00
parent ba885357c2
commit b614049d03
14 changed files with 126 additions and 36 deletions

View File

@@ -30,7 +30,12 @@ type Booking struct {
CounterId int `json:"counter_id"`
}
var DB *sql.DB
type IDatabase interface {
Prepare(query string) (*sql.Stmt, error)
Exec(query string, args ...any) (sql.Result, error)
}
var DB IDatabase
func (b *Booking) New(card_uid string, geraet_id int16, check_in_out int16) Booking {
return Booking{