func (p *PgProtocolState) PendingQuery() base.OnQueryObject {
	return p.pendingQuery
}
PendingQuery returns a query object pending response from the database.
package postgresql
import (
	"github.com/cossacklabs/acra/decryptor/base"
	"github.com/cossacklabs/acra/logging"
)
type PgProtocolState struct {
	lastPacketType PacketType
	pendingQuery   base.OnQueryObject
	pendingParse   *ParsePacket
	pendingBind    *BindPacket
	pendingExecute *ExecutePacket
}
type PacketType int
const (
	SimpleQueryPacket PacketType = iota
	ParseStatementPacket
	ParseCompletePacket
	BindStatementPacket
	BindCompletePacket
	DataPacket
	OtherPacket
)
func NewPgProtocolState() *PgProtocolState {
	return &PgProtocolState{lastPacketType: OtherPacket}
}
func (p *PgProtocolState) LastPacketType() PacketType {
	return p.lastPacketType
}