github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/state/interfaces.go (about)

     1  package state
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/jackc/pgconn"
     7  	"github.com/jackc/pgx/v4"
     8  )
     9  
    10  type execQuerier interface {
    11  	Exec(ctx context.Context, sql string, arguments ...interface{}) (commandTag pgconn.CommandTag, err error)
    12  	Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
    13  	QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
    14  }