Can now run ChromeDP to automate the browser based testing.
This commit is contained in:
parent
81aaffec56
commit
b28e507e5e
6 changed files with 72 additions and 7 deletions
|
@ -58,11 +58,12 @@ func ReceivePost[T any](c *fiber.Ctx) (*T, error) {
|
|||
return result, nil
|
||||
}
|
||||
|
||||
func Insert(db *sqlx.DB, err error, sql string, args ...interface{}) error {
|
||||
func Insert(db *sqlx.DB, err error, sql_query string, args ...interface{}) error {
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return err
|
||||
}
|
||||
|
||||
return db.MustExec(sql, args...)
|
||||
_, exec_err := db.NamedExec(sql_query, args)
|
||||
return exec_err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue