advsql/update.go
2022-07-12 17:56:06 +02:00

6 lines
174 B
Go

package advsql
func Update[T any](db *Database, query string, encoder func(v *T, encode ScanFunc) error) UpdateFunc[T] {
return UpdateFunc[T](Insert(db, query, encoder))
}