blob: 38c274acb1433fa289c3ecf5378741e40ca0aa36 [file] [log] [blame]
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4"
)
type PGDBTX interface {
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
QueryRow(context.Context, string, ...interface{}) pgx.Row
BeginFunc(ctx context.Context, f func(pgx.Tx) error) error
Close()
}