advsql/func_types.go
Timon Ringwald a39f467b93 QueryOne implemented
Query renamed to QueryMany
Default Decoders refactored
2022-07-11 13:00:36 +02:00

13 lines
404 B
Go

package advsql
import "context"
type QueryManyFunc[T any] func(args ...interface{}) <-chan *T
type QueryManyContextFunc[T any] func(ctx context.Context, args ...interface{}) <-chan *T
type QueryOneFunc[T any] func(args ...interface{}) *T
type QueryOneContextFunc[T any] func(ctx context.Context, args ...interface{}) *T
type InsertFunc[T any] func(v *T) error
type UpdateFunc[T any] func(v *T) error