advsql/update.go

6 lines
174 B
Go
Raw Normal View History

2022-07-05 12:38:39 +02:00
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))
2022-07-05 12:38:39 +02:00
}