advsql/delete.go

12 lines
206 B
Go
Raw Normal View History

2022-09-06 10:42:09 +02:00
package advsql
2022-09-06 10:51:21 +02:00
func Delete(db *Database, query string) DeleteFunc {
2022-09-06 10:49:22 +02:00
prepareGlobal(db, query)
return func(args ...interface{}) error {
s := db.stmt(query)
_, err := s.Exec(args...)
return err
}
2022-09-06 10:42:09 +02:00
}