2022-07-05 12:38:39 +02:00
|
|
|
package advsql
|
|
|
|
|
2022-07-12 17:56:06 +02:00
|
|
|
func Update[T any](db *Database, query string, encoder func(v *T, encode ScanFunc) error) UpdateFunc[T] {
|
2022-07-11 13:00:36 +02:00
|
|
|
return UpdateFunc[T](Insert(db, query, encoder))
|
2022-07-05 12:38:39 +02:00
|
|
|
}
|