mirror of
https://github.com/twofas/2fas-server.git
synced 2025-01-05 22:15:56 +01:00
12 lines
218 B
Go
12 lines
218 B
Go
|
package db
|
||
|
|
||
|
import (
|
||
|
"database/sql"
|
||
|
"github.com/doug-martin/goqu/v9"
|
||
|
_ "github.com/doug-martin/goqu/v9/dialect/mysql"
|
||
|
)
|
||
|
|
||
|
func NewQueryBuilder(database *sql.DB) *goqu.Database {
|
||
|
return goqu.New("mysql", database)
|
||
|
}
|