interface union

This commit is contained in:
Pavel Merzlyakov 2023-08-10 17:02:05 +03:00
parent 8997c2253c
commit 40002c0e00
1 changed files with 5 additions and 0 deletions

5
db.go
View File

@ -13,3 +13,8 @@ type Querier interface {
type Execer interface {
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
}
type QuerierExecer interface {
Querier
Execer
}