advsql/update.go

6 lines
176 B
Go
Raw Permalink 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 EncodeFunc) error) UpdateFunc[T] {
return UpdateFunc[T](Insert(db, query, encoder))
2022-07-05 12:38:39 +02:00
}