feat: use sqlx
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 6m59s
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 6m59s
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jmoiron/sqlx"
|
||||
)
|
||||
|
||||
type Auth interface {
|
||||
@@ -32,10 +33,10 @@ type Auth interface {
|
||||
}
|
||||
|
||||
type AuthSqlite struct {
|
||||
db *sql.DB
|
||||
db *sqlx.DB
|
||||
}
|
||||
|
||||
func NewAuthSqlite(db *sql.DB) *AuthSqlite {
|
||||
func NewAuthSqlite(db *sqlx.DB) *AuthSqlite {
|
||||
return &AuthSqlite{db: db}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user