diff --git a/delete.go b/delete.go index b06df44..fe94c1a 100644 --- a/delete.go +++ b/delete.go @@ -1,6 +1,6 @@ package advsql -func Delete[T any](db *Database, query string) DeleteFunc[T] { +func Delete(db *Database, query string) DeleteFunc { prepareGlobal(db, query) return func(args ...interface{}) error { diff --git a/func_types.go b/func_types.go index 4540b42..78ba96d 100644 --- a/func_types.go +++ b/func_types.go @@ -11,6 +11,6 @@ type QueryOneContextFunc[T any] func(ctx context.Context, args ...interface{}) * type InsertFunc[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