12 lines
206 B
Go
12 lines
206 B
Go
package advsql
|
|
|
|
func Delete(db *Database, query string) DeleteFunc {
|
|
prepareGlobal(db, query)
|
|
|
|
return func(args ...interface{}) error {
|
|
s := db.stmt(query)
|
|
_, err := s.Exec(args...)
|
|
return err
|
|
}
|
|
}
|