apollo-backend/internal/repository/connection.go

15 lines
327 B
Go
Raw Normal View History

package repository
import (
"context"
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4"
)
type Connection interface {
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
QueryRow(context.Context, string, ...interface{}) pgx.Row
}