Versions in this module Expand all Collapse all v2 v2.0.0 Dec 11, 2023 Changes in this version + const AuthSASLSCRAMSHA256 + const AuthSASLSCRAMSHA256PLUS + const AuthTypeMd5 + const AuthTypeOk + const AuthTypePwd + const AuthTypeSASL + const AuthTypeSASLContinue + const CopyFormatBinary + const CopyFormatText + const PgTypeAbstime + const PgTypeAclitem + const PgTypeAny + const PgTypeAnyarray + const PgTypeAnyelement + const PgTypeAnyenum + const PgTypeAnynonarray + const PgTypeAnyrange + const PgTypeArrAbstime + const PgTypeArrAclitem + const PgTypeArrBit + const PgTypeArrBool + const PgTypeArrBox + const PgTypeArrBpchar + const PgTypeArrBytea + const PgTypeArrChar + const PgTypeArrCid + const PgTypeArrCidr + const PgTypeArrCircle + const PgTypeArrCstring + const PgTypeArrDate + const PgTypeArrDaterange + const PgTypeArrFloat4 + const PgTypeArrFloat8 + const PgTypeArrGtsvector + const PgTypeArrInet + const PgTypeArrInt2 + const PgTypeArrInt2vector + const PgTypeArrInt4 + const PgTypeArrInt4range + const PgTypeArrInt8 + const PgTypeArrInt8range + const PgTypeArrInterval + const PgTypeArrJson + const PgTypeArrJsonb + const PgTypeArrLine + const PgTypeArrLseg + const PgTypeArrMacaddr + const PgTypeArrMacaddr8 + const PgTypeArrMoney + const PgTypeArrName + const PgTypeArrNumeric + const PgTypeArrNumrange + const PgTypeArrOid + const PgTypeArrOidvector + const PgTypeArrPath + const PgTypeArrPgLsn + const PgTypeArrPoint + const PgTypeArrPolygon + const PgTypeArrRecord + const PgTypeArrRefcursor + const PgTypeArrRegclass + const PgTypeArrRegconfig + const PgTypeArrRegdictionary + const PgTypeArrRegnamespace + const PgTypeArrRegoper + const PgTypeArrRegoperator + const PgTypeArrRegproc + const PgTypeArrRegprocedure + const PgTypeArrRegrole + const PgTypeArrRegtype + const PgTypeArrReltime + const PgTypeArrText + const PgTypeArrTid + const PgTypeArrTime + const PgTypeArrTimestamp + const PgTypeArrTimestamptz + const PgTypeArrTimetz + const PgTypeArrTinterval + const PgTypeArrTsquery + const PgTypeArrTsrange + const PgTypeArrTstzrange + const PgTypeArrTsvector + const PgTypeArrTxidSnapshot + const PgTypeArrUuid + const PgTypeArrVarbit + const PgTypeArrVarchar + const PgTypeArrXid + const PgTypeArrXml + const PgTypeBit + const PgTypeBool + const PgTypeBox + const PgTypeBpchar + const PgTypeBytea + const PgTypeChar + const PgTypeCid + const PgTypeCidr + const PgTypeCircle + const PgTypeCstring + const PgTypeDate + const PgTypeDaterange + const PgTypeEventTrigger + const PgTypeFdwHandler + const PgTypeFloat4 + const PgTypeFloat8 + const PgTypeGtsvector + const PgTypeIndexAmHandler + const PgTypeInet + const PgTypeInt2 + const PgTypeInt2vector + const PgTypeInt4 + const PgTypeInt4range + const PgTypeInt8 + const PgTypeInt8range + const PgTypeInternal + const PgTypeInterval + const PgTypeJson + const PgTypeJsonb + const PgTypeLanguageHandler + const PgTypeLine + const PgTypeLseg + const PgTypeMacaddr + const PgTypeMacaddr8 + const PgTypeMoney + const PgTypeName + const PgTypeNumeric + const PgTypeNumrange + const PgTypeOid + const PgTypeOidvector + const PgTypeOpaque + const PgTypePath + const PgTypePgAttribute + const PgTypePgAuthMembers + const PgTypePgAuthid + const PgTypePgClass + const PgTypePgDatabase + const PgTypePgDdlCommand + const PgTypePgDependencies + const PgTypePgLsn + const PgTypePgNdistinct + const PgTypePgNodeTree + const PgTypePgProc + const PgTypePgShseclabel + const PgTypePgSubscription + const PgTypePgType + const PgTypePoint + const PgTypePolygon + const PgTypeRecord + const PgTypeRefcursor + const PgTypeRegclass + const PgTypeRegconfig + const PgTypeRegdictionary + const PgTypeRegnamespace + const PgTypeRegoper + const PgTypeRegoperator + const PgTypeRegproc + const PgTypeRegprocedure + const PgTypeRegrole + const PgTypeRegtype + const PgTypeReltime + const PgTypeSmgr + const PgTypeText + const PgTypeTid + const PgTypeTime + const PgTypeTimestamp + const PgTypeTimestamptz + const PgTypeTimetz + const PgTypeTinterval + const PgTypeTrigger + const PgTypeTsmHandler + const PgTypeTsquery + const PgTypeTsrange + const PgTypeTstzrange + const PgTypeTsvector + const PgTypeTxidSnapshot + const PgTypeUnknown + const PgTypeUuid + const PgTypeVarbit + const PgTypeVarchar + const PgTypeVoid + const PgTypeXid + const PgTypeXml + const TransactionStatusIdle + const TransactionStatusIdleInTransaction + const TransactionStatusInFailedTransaction + const TransactionStatusNoReady + const TypeAuthRequest + const TypeBackendKeyData + const TypeCloseComplete + const TypeCommandCompletion + const TypeDataRow + const TypeEmptyQueryResponse + const TypeError + const TypeNoData + const TypeNoticeResponse + const TypeNotification + const TypeParameterDescription + const TypeParameterStatus + const TypeParseCompletion + const TypeReadyForQuery + const TypeRowDescription + var PgTypeMap = map[PgType]string + type AuthRequest struct + func (ar *AuthRequest) GetMd5Salt() []byte + func (ar *AuthRequest) GetSASLAuthData() []byte + func (ar *AuthRequest) GetSASLAuthMechanism() string + func (ar *AuthRequest) GetType() uint32 + type AuthResponse struct + func NewAuthResponse() *AuthResponse + func (ar *AuthResponse) Md5Pwd(user, pwd, salt string) + func (ar *AuthResponse) Password(str string) + type AuthSASLInitialResponse struct + func NewAuthSASLInitialResponse() *AuthSASLInitialResponse + func (ar *AuthSASLInitialResponse) AuthResponse(str string) + func (ar *AuthSASLInitialResponse) Mechanism(str string) + type AuthSASLResponse struct + func NewAuthSASLResponse() *AuthSASLResponse + func (ar *AuthSASLResponse) AuthResponse(raw []byte) + type BackendKeyData struct + Key uint32 + Pid uint32 + func (bkd *BackendKeyData) Decode() + type BindCompletion struct + type CloseComplete struct + type Column struct + Format uint16 + Index uint16 + Length uint16 + Name string + TableOid uint32 + TypeModifier uint32 + TypeOid uint32 + type CommandCompletion struct + func (cc *CommandCompletion) Affected() (n int) + type CopyCompletion struct + type CopyData struct + type CopyFail struct + type CopyFormat uint8 + type CopyInResponse struct + ColumnLength uint16 + Format CopyFormat + func (cir *CopyInResponse) Decode() + type CopyOutResponse struct + ColumnFormats []CopyFormat + ColumnLength uint16 + Format CopyFormat + func (cor *CopyOutResponse) Decode() + type Data struct + Name byte + func NewBind(stat string, args []driver.Value) *Data + func NewCancelRequest(pid, key uint32) *Data + func NewCloseStat(stat string) *Data + func NewDescribe(stat string) *Data + func NewExecute() *Data + func NewFlush() *Data + func NewParse(sid, query string) *Data + func NewSSLRequest() *Data + func NewSimpleQuery(stat string) *Data + func NewSync() *Data + func NewTermination() *Data + func (f *Data) Length() uint32 + func (f *Data) Payload() []byte + func (f *Data) Type() byte + func (f *Data) WriteUint8(uint uint8) + type DataRow struct + Count uint16 + DataArr [][]byte + func (dr *DataRow) Decode() + type Decoder struct + func NewDecoder(c net.Conn) *Decoder + func (d *Decoder) Receive() (data *Data, err error) + type EmptyQueryResponse struct + type Encoder struct + func NewEncoder(c net.Conn) *Encoder + func (e *Encoder) Buff(f *Data) (err error) + func (e *Encoder) Flush() (err error) + func (e *Encoder) Send(f *Data) (err error) + type Error struct + Error PgError + func (e *Error) Decode() + func (e *Error) String() string + type Frame interface + Length func() uint32 + Payload func() []byte + Type func() byte + type NoData struct + type NoticeResponse struct + func (nr NoticeResponse) Log() + type Notification struct + Condition string + Pid uint32 + Text string + func (n *Notification) Decode() + type ParameterDescription struct + Count uint16 + TypeOIDs []uint32 + func (pd *ParameterDescription) Decode() + type ParameterStatus struct + Name string + Value string + func (ps *ParameterStatus) Decode() + type ParseCompletion struct + type PgError struct + Code string + Column string + Constraint string + DateType string + Detail string + Fail string + File string + Hint string + InternalPosition string + InternalQuery string + Line string + LocalError string + Message string + Position string + Routine string + Schema string + Table string + Where string + func (e PgError) Error() string + type PgType uint32 + type ReadyForQuery struct + type RowDescription struct + Columns []Column + Count uint16 + func (rd *RowDescription) Decode() + type SSLRequest Data + type Startup struct + func NewStartup() *Startup + func (sf *Startup) AddParam(name, value string) + type TransactionStatus byte + type Type byte