2022-07-05 12:38:39 +02:00
|
|
|
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
|
|
|
|
|
2022-07-11 13:00:36 +02:00
|
|
|
type QueryOneFunc[T any] func(args ...interface{}) *T
|
|
|
|
type QueryOneContextFunc[T any] func(ctx context.Context, args ...interface{}) *T
|
|
|
|
|
2022-07-05 12:38:39 +02:00
|
|
|
type InsertFunc[T any] func(v *T) error
|
2022-07-11 13:00:36 +02:00
|
|
|
type UpdateFunc[T any] func(v *T) error
|
2022-07-12 16:32:02 +02:00
|
|
|
|
2022-09-06 10:51:21 +02:00
|
|
|
type DeleteFunc func(args ...interface{}) error
|
2022-09-06 10:42:09 +02:00
|
|
|
|
2022-07-12 17:56:06 +02:00
|
|
|
type ScanFunc = func(args ...interface{}) error
|