Compare commits

...

1 Commits

Author SHA1 Message Date
Timon Ringwald
31258a50a4 improved Delete func 2022-09-06 10:51:21 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
package advsql package advsql
func Delete[T any](db *Database, query string) DeleteFunc[T] { func Delete(db *Database, query string) DeleteFunc {
prepareGlobal(db, query) prepareGlobal(db, query)
return func(args ...interface{}) error { return func(args ...interface{}) error {

View File

@ -11,6 +11,6 @@ type QueryOneContextFunc[T any] func(ctx context.Context, args ...interface{}) *
type InsertFunc[T any] func(v *T) error type InsertFunc[T any] func(v *T) error
type UpdateFunc[T any] func(v *T) error type UpdateFunc[T any] func(v *T) error
type DeleteFunc[T any] func(args ...interface{}) error type DeleteFunc func(args ...interface{}) error
type ScanFunc = func(args ...interface{}) error type ScanFunc = func(args ...interface{}) error