Versions in this module Expand all Collapse all v5 v5.5.2 Nov 12, 2023 v5.5.1 Nov 12, 2023 Changes in this version + const ACLItemArrayOID + const ACLItemOID + const BPCharArrayOID + const BPCharOID + const BinaryFormatCode + const BitArrayOID + const BitOID + const BoolArrayOID + const BoolOID + const BoxArrayOID + const BoxOID + const ByteaArrayOID + const ByteaOID + const CIDArrayOID + const CIDOID + const CIDRArrayOID + const CIDROID + const CircleArrayOID + const CircleOID + const DateArrayOID + const DateOID + const DatemultirangeArrayOID + const DatemultirangeOID + const DaterangeArrayOID + const DaterangeOID + const Empty + const Exclusive + const Float4ArrayOID + const Float4OID + const Float8ArrayOID + const Float8OID + const Inclusive + const InetArrayOID + const InetOID + const Int2ArrayOID + const Int2OID + const Int4ArrayOID + const Int4OID + const Int4multirangeArrayOID + const Int4multirangeOID + const Int4rangeArrayOID + const Int4rangeOID + const Int8ArrayOID + const Int8OID + const Int8multirangeArrayOID + const Int8multirangeOID + const Int8rangeArrayOID + const Int8rangeOID + const IntervalArrayOID + const IntervalOID + const JSONArrayOID + const JSONBArrayOID + const JSONBOID + const JSONOID + const JSONPathArrayOID + const JSONPathOID + const LineArrayOID + const LineOID + const LsegArrayOID + const LsegOID + const MacaddrArrayOID + const MacaddrOID + const NameArrayOID + const NameOID + const NumericArrayOID + const NumericOID + const NummultirangeArrayOID + const NummultirangeOID + const NumrangeArrayOID + const NumrangeOID + const OIDArrayOID + const OIDOID + const PathArrayOID + const PathOID + const PointArrayOID + const PointOID + const PolygonArrayOID + const PolygonOID + const QCharArrayOID + const QCharOID + const RecordArrayOID + const RecordOID + const TIDArrayOID + const TIDOID + const TextArrayOID + const TextFormatCode + const TextOID + const TimeArrayOID + const TimeOID + const TimestampArrayOID + const TimestampOID + const TimestamptzArrayOID + const TimestamptzOID + const TsmultirangeArrayOID + const TsmultirangeOID + const TsrangeArrayOID + const TsrangeOID + const TstzmultirangeArrayOID + const TstzmultirangeOID + const TstzrangeArrayOID + const TstzrangeOID + const UUIDArrayOID + const UUIDOID + const Unbounded + const UnknownOID + const VarbitArrayOID + const VarbitOID + const VarcharArrayOID + const VarcharOID + const XIDArrayOID + const XIDOID + var ErrScanTargetTypeChanged = errors.New("scan target type changed") + func GetAssignToDstType(dst any) (any, bool) + func NullAssignTo(dst any) error + type Array struct + Dims []ArrayDimension + Elements []T + Valid bool + func (a *Array[T]) SetDimensions(dimensions []ArrayDimension) error + func (a Array[T]) Dimensions() []ArrayDimension + func (a Array[T]) Index(i int) any + func (a Array[T]) IndexType() any + func (a Array[T]) ScanIndex(i int) any + func (a Array[T]) ScanIndexType() any + type ArrayCodec struct + ElementType *Type + func (c *ArrayCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c *ArrayCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (c *ArrayCodec) FormatSupported(format int16) bool + func (c *ArrayCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (c *ArrayCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (c *ArrayCodec) PreferredFormat() int16 + type ArrayDimension struct + Length int32 + LowerBound int32 + type ArrayGetter interface + Dimensions func() []ArrayDimension + Index func(i int) any + IndexType func() any + type ArraySetter interface + ScanIndex func(i int) any + ScanIndexType func() any + SetDimensions func(dimensions []ArrayDimension) error + type Bits struct + Bytes []byte + Len int32 + Valid bool + func (b *Bits) ScanBits(v Bits) error + func (b Bits) BitsValue() (Bits, error) + func (dst *Bits) Scan(src any) error + func (src Bits) Value() (driver.Value, error) + type BitsCodec struct + func (BitsCodec) FormatSupported(format int16) bool + func (BitsCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (BitsCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (BitsCodec) PreferredFormat() int16 + func (c BitsCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c BitsCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type BitsScanner interface + ScanBits func(v Bits) error + type BitsValuer interface + BitsValue func() (Bits, error) + type Bool struct + Bool bool + Valid bool + func (b *Bool) ScanBool(v Bool) error + func (b Bool) BoolValue() (Bool, error) + func (dst *Bool) Scan(src any) error + func (dst *Bool) UnmarshalJSON(b []byte) error + func (src Bool) MarshalJSON() ([]byte, error) + func (src Bool) Value() (driver.Value, error) + type BoolCodec struct + func (BoolCodec) FormatSupported(format int16) bool + func (BoolCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (BoolCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (BoolCodec) PreferredFormat() int16 + func (c BoolCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c BoolCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type BoolScanner interface + ScanBool func(v Bool) error + type BoolValuer interface + BoolValue func() (Bool, error) + type BoundType byte + func (bt BoundType) String() string + type Box struct + P [2]Vec2 + Valid bool + func (b *Box) ScanBox(v Box) error + func (b Box) BoxValue() (Box, error) + func (dst *Box) Scan(src any) error + func (src Box) Value() (driver.Value, error) + type BoxCodec struct + func (BoxCodec) FormatSupported(format int16) bool + func (BoxCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (BoxCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (BoxCodec) PreferredFormat() int16 + func (c BoxCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c BoxCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type BoxScanner interface + ScanBox func(v Box) error + type BoxValuer interface + BoxValue func() (Box, error) + type ByteaCodec struct + func (ByteaCodec) FormatSupported(format int16) bool + func (ByteaCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (ByteaCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (ByteaCodec) PreferredFormat() int16 + func (c ByteaCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c ByteaCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type BytesScanner interface + ScanBytes func(v []byte) error + type BytesValuer interface + BytesValue func() ([]byte, error) + type Circle struct + P Vec2 + R float64 + Valid bool + func (c *Circle) ScanCircle(v Circle) error + func (c Circle) CircleValue() (Circle, error) + func (dst *Circle) Scan(src any) error + func (src Circle) Value() (driver.Value, error) + type CircleCodec struct + func (CircleCodec) FormatSupported(format int16) bool + func (CircleCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (CircleCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (CircleCodec) PreferredFormat() int16 + func (c CircleCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c CircleCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type CircleScanner interface + ScanCircle func(v Circle) error + type CircleValuer interface + CircleValue func() (Circle, error) + type Codec interface + DecodeDatabaseSQLValue func(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + DecodeValue func(m *Map, oid uint32, format int16, src []byte) (any, error) + FormatSupported func(int16) bool + PlanEncode func(m *Map, oid uint32, format int16, value any) EncodePlan + PlanScan func(m *Map, oid uint32, format int16, target any) ScanPlan + PreferredFormat func() int16 + type CompositeBinaryBuilder struct + func NewCompositeBinaryBuilder(m *Map, buf []byte) *CompositeBinaryBuilder + func (b *CompositeBinaryBuilder) AppendValue(oid uint32, field any) + func (b *CompositeBinaryBuilder) Finish() ([]byte, error) + type CompositeBinaryScanner struct + func NewCompositeBinaryScanner(m *Map, src []byte) *CompositeBinaryScanner + func (cfs *CompositeBinaryScanner) Bytes() []byte + func (cfs *CompositeBinaryScanner) Err() error + func (cfs *CompositeBinaryScanner) FieldCount() int + func (cfs *CompositeBinaryScanner) Next() bool + func (cfs *CompositeBinaryScanner) OID() uint32 + type CompositeCodec struct + Fields []CompositeCodecField + func (c *CompositeCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c *CompositeCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (c *CompositeCodec) FormatSupported(format int16) bool + func (c *CompositeCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (c *CompositeCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (c *CompositeCodec) PreferredFormat() int16 + type CompositeCodecField struct + Name string + Type *Type + type CompositeFields []any + func (cf CompositeFields) Index(i int) any + func (cf CompositeFields) IsNull() bool + func (cf CompositeFields) ScanIndex(i int) any + func (cf CompositeFields) ScanNull() error + func (cf CompositeFields) SkipUnderlyingTypePlan() + type CompositeIndexGetter interface + Index func(i int) any + IsNull func() bool + type CompositeIndexScanner interface + ScanIndex func(i int) any + ScanNull func() error + type CompositeTextBuilder struct + func NewCompositeTextBuilder(m *Map, buf []byte) *CompositeTextBuilder + func (b *CompositeTextBuilder) AppendValue(oid uint32, field any) + func (b *CompositeTextBuilder) Finish() ([]byte, error) + type CompositeTextScanner struct + func NewCompositeTextScanner(m *Map, src []byte) *CompositeTextScanner + func (cfs *CompositeTextScanner) Bytes() []byte + func (cfs *CompositeTextScanner) Err() error + func (cfs *CompositeTextScanner) Next() bool + type Date struct + InfinityModifier InfinityModifier + Time time.Time + Valid bool + func (d *Date) ScanDate(v Date) error + func (d Date) DateValue() (Date, error) + func (dst *Date) Scan(src any) error + func (dst *Date) UnmarshalJSON(b []byte) error + func (src Date) MarshalJSON() ([]byte, error) + func (src Date) Value() (driver.Value, error) + type DateCodec struct + func (DateCodec) FormatSupported(format int16) bool + func (DateCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (DateCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (DateCodec) PreferredFormat() int16 + func (c DateCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c DateCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type DateScanner interface + ScanDate func(v Date) error + type DateValuer interface + DateValue func() (Date, error) + type DriverBytes []byte + func (b *DriverBytes) ScanBytes(v []byte) error + type EncodePlan interface + Encode func(value any, buf []byte) (newBuf []byte, err error) + type EnumCodec struct + func (EnumCodec) FormatSupported(format int16) bool + func (EnumCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (EnumCodec) PreferredFormat() int16 + func (c *EnumCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c *EnumCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (c *EnumCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + type FlatArray []T + func (a *FlatArray[T]) SetDimensions(dimensions []ArrayDimension) error + func (a FlatArray[T]) Dimensions() []ArrayDimension + func (a FlatArray[T]) Index(i int) any + func (a FlatArray[T]) IndexType() any + func (a FlatArray[T]) ScanIndex(i int) any + func (a FlatArray[T]) ScanIndexType() any + type Float4 struct + Float32 float32 + Valid bool + func (f *Float4) Scan(src any) error + func (f *Float4) ScanFloat64(n Float8) error + func (f *Float4) ScanInt64(n Int8) error + func (f *Float4) UnmarshalJSON(b []byte) error + func (f Float4) Float64Value() (Float8, error) + func (f Float4) Int64Value() (Int8, error) + func (f Float4) MarshalJSON() ([]byte, error) + func (f Float4) Value() (driver.Value, error) + type Float4Codec struct + func (Float4Codec) FormatSupported(format int16) bool + func (Float4Codec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (Float4Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (Float4Codec) PreferredFormat() int16 + func (c Float4Codec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c Float4Codec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Float64Scanner interface + ScanFloat64 func(Float8) error + type Float64Valuer interface + Float64Value func() (Float8, error) + type Float8 struct + Float64 float64 + Valid bool + func (f *Float8) Scan(src any) error + func (f *Float8) ScanFloat64(n Float8) error + func (f *Float8) ScanInt64(n Int8) error + func (f *Float8) UnmarshalJSON(b []byte) error + func (f Float8) Float64Value() (Float8, error) + func (f Float8) Int64Value() (Int8, error) + func (f Float8) MarshalJSON() ([]byte, error) + func (f Float8) Value() (driver.Value, error) + type Float8Codec struct + func (Float8Codec) FormatSupported(format int16) bool + func (Float8Codec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (Float8Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (Float8Codec) PreferredFormat() int16 + func (c Float8Codec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c Float8Codec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Hstore map[string]*string + func (h *Hstore) Scan(src any) error + func (h *Hstore) ScanHstore(v Hstore) error + func (h Hstore) HstoreValue() (Hstore, error) + func (h Hstore) Value() (driver.Value, error) + type HstoreCodec struct + func (HstoreCodec) FormatSupported(format int16) bool + func (HstoreCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (HstoreCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (HstoreCodec) PreferredFormat() int16 + func (c HstoreCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c HstoreCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type HstoreScanner interface + ScanHstore func(v Hstore) error + type HstoreValuer interface + HstoreValue func() (Hstore, error) + type InetCodec struct + func (InetCodec) FormatSupported(format int16) bool + func (InetCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (InetCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (InetCodec) PreferredFormat() int16 + func (c InetCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c InetCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type InfinityModifier int8 + const Finite + const Infinity + const NegativeInfinity + func (im InfinityModifier) String() string + type Int2 struct + Int16 int16 + Valid bool + func (dst *Int2) Scan(src any) error + func (dst *Int2) ScanInt64(n Int8) error + func (dst *Int2) UnmarshalJSON(b []byte) error + func (n Int2) Int64Value() (Int8, error) + func (src Int2) MarshalJSON() ([]byte, error) + func (src Int2) Value() (driver.Value, error) + type Int2Codec struct + func (Int2Codec) FormatSupported(format int16) bool + func (Int2Codec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (Int2Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (Int2Codec) PreferredFormat() int16 + func (c Int2Codec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c Int2Codec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Int4 struct + Int32 int32 + Valid bool + func (dst *Int4) Scan(src any) error + func (dst *Int4) ScanInt64(n Int8) error + func (dst *Int4) UnmarshalJSON(b []byte) error + func (n Int4) Int64Value() (Int8, error) + func (src Int4) MarshalJSON() ([]byte, error) + func (src Int4) Value() (driver.Value, error) + type Int4Codec struct + func (Int4Codec) FormatSupported(format int16) bool + func (Int4Codec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (Int4Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (Int4Codec) PreferredFormat() int16 + func (c Int4Codec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c Int4Codec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Int64Scanner interface + ScanInt64 func(Int8) error + type Int64Valuer interface + Int64Value func() (Int8, error) + type Int8 struct + Int64 int64 + Valid bool + func (dst *Int8) Scan(src any) error + func (dst *Int8) ScanInt64(n Int8) error + func (dst *Int8) UnmarshalJSON(b []byte) error + func (n Int8) Int64Value() (Int8, error) + func (src Int8) MarshalJSON() ([]byte, error) + func (src Int8) Value() (driver.Value, error) + type Int8Codec struct + func (Int8Codec) FormatSupported(format int16) bool + func (Int8Codec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (Int8Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (Int8Codec) PreferredFormat() int16 + func (c Int8Codec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c Int8Codec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Interval struct + Days int32 + Microseconds int64 + Months int32 + Valid bool + func (interval *Interval) Scan(src any) error + func (interval *Interval) ScanInterval(v Interval) error + func (interval Interval) IntervalValue() (Interval, error) + func (interval Interval) Value() (driver.Value, error) + type IntervalCodec struct + func (IntervalCodec) FormatSupported(format int16) bool + func (IntervalCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (IntervalCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (IntervalCodec) PreferredFormat() int16 + func (c IntervalCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c IntervalCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type IntervalScanner interface + ScanInterval func(v Interval) error + type IntervalValuer interface + IntervalValue func() (Interval, error) + type JSONBCodec struct + func (JSONBCodec) FormatSupported(format int16) bool + func (JSONBCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (JSONBCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (JSONBCodec) PreferredFormat() int16 + func (c JSONBCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c JSONBCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type JSONCodec struct + func (JSONCodec) FormatSupported(format int16) bool + func (JSONCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (JSONCodec) PreferredFormat() int16 + func (c JSONCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c JSONCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (c JSONCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + type Line struct + A float64 + B float64 + C float64 + Valid bool + func (line *Line) Scan(src any) error + func (line *Line) ScanLine(v Line) error + func (line *Line) Set(src any) error + func (line Line) LineValue() (Line, error) + func (line Line) Value() (driver.Value, error) + type LineCodec struct + func (LineCodec) FormatSupported(format int16) bool + func (LineCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (LineCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (LineCodec) PreferredFormat() int16 + func (c LineCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c LineCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type LineScanner interface + ScanLine func(v Line) error + type LineValuer interface + LineValue func() (Line, error) + type Lseg struct + P [2]Vec2 + Valid bool + func (lseg *Lseg) Scan(src any) error + func (lseg *Lseg) ScanLseg(v Lseg) error + func (lseg Lseg) LsegValue() (Lseg, error) + func (lseg Lseg) Value() (driver.Value, error) + type LsegCodec struct + func (LsegCodec) FormatSupported(format int16) bool + func (LsegCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (LsegCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (LsegCodec) PreferredFormat() int16 + func (c LsegCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c LsegCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type LsegScanner interface + ScanLseg func(v Lseg) error + type LsegValuer interface + LsegValue func() (Lseg, error) + type MacaddrCodec struct + func (MacaddrCodec) FormatSupported(format int16) bool + func (MacaddrCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (MacaddrCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (MacaddrCodec) PreferredFormat() int16 + func (c MacaddrCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c MacaddrCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Map struct + TryWrapEncodePlanFuncs []TryWrapEncodePlanFunc + TryWrapScanPlanFuncs []TryWrapScanPlanFunc + func NewMap() *Map + func (m *Map) Encode(oid uint32, formatCode int16, value any, buf []byte) (newBuf []byte, err error) + func (m *Map) FormatCodeForOID(oid uint32) int16 + func (m *Map) PlanEncode(oid uint32, format int16, value any) EncodePlan + func (m *Map) PlanScan(oid uint32, formatCode int16, target any) ScanPlan + func (m *Map) RegisterDefaultPgType(value any, name string) + func (m *Map) RegisterType(t *Type) + func (m *Map) SQLScanner(v any) sql.Scanner + func (m *Map) Scan(oid uint32, formatCode int16, src []byte, dst any) error + func (m *Map) TypeForName(name string) (*Type, bool) + func (m *Map) TypeForOID(oid uint32) (*Type, bool) + func (m *Map) TypeForValue(v any) (*Type, bool) + type Multirange []T + func (r *Multirange[T]) ScanNull() error + func (r *Multirange[T]) SetLen(n int) error + func (r Multirange[T]) Index(i int) any + func (r Multirange[T]) IndexType() any + func (r Multirange[T]) IsNull() bool + func (r Multirange[T]) Len() int + func (r Multirange[T]) ScanIndex(i int) any + func (r Multirange[T]) ScanIndexType() any + type MultirangeCodec struct + ElementType *Type + func (c *MultirangeCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c *MultirangeCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (c *MultirangeCodec) FormatSupported(format int16) bool + func (c *MultirangeCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (c *MultirangeCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (c *MultirangeCodec) PreferredFormat() int16 + type MultirangeGetter interface + Index func(i int) any + IndexType func() any + IsNull func() bool + Len func() int + type MultirangeSetter interface + ScanIndex func(i int) any + ScanIndexType func() any + ScanNull func() error + SetLen func(n int) error + type NetipPrefixScanner interface + ScanNetipPrefix func(v netip.Prefix) error + type NetipPrefixValuer interface + NetipPrefixValue func() (netip.Prefix, error) + type Numeric struct + Exp int32 + InfinityModifier InfinityModifier + Int *big.Int + NaN bool + Valid bool + func (n *Numeric) Scan(src any) error + func (n *Numeric) ScanInt64(v Int8) error + func (n *Numeric) ScanNumeric(v Numeric) error + func (n *Numeric) UnmarshalJSON(src []byte) error + func (n Numeric) Float64Value() (Float8, error) + func (n Numeric) Int64Value() (Int8, error) + func (n Numeric) MarshalJSON() ([]byte, error) + func (n Numeric) NumericValue() (Numeric, error) + func (n Numeric) Value() (driver.Value, error) + type NumericCodec struct + func (NumericCodec) FormatSupported(format int16) bool + func (NumericCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (NumericCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (NumericCodec) PreferredFormat() int16 + func (c NumericCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c NumericCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type NumericScanner interface + ScanNumeric func(v Numeric) error + type NumericValuer interface + NumericValue func() (Numeric, error) + type Path struct + Closed bool + P []Vec2 + Valid bool + func (path *Path) Scan(src any) error + func (path *Path) ScanPath(v Path) error + func (path Path) PathValue() (Path, error) + func (path Path) Value() (driver.Value, error) + type PathCodec struct + func (PathCodec) FormatSupported(format int16) bool + func (PathCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (PathCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (PathCodec) PreferredFormat() int16 + func (c PathCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c PathCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type PathScanner interface + ScanPath func(v Path) error + type PathValuer interface + PathValue func() (Path, error) + type Point struct + P Vec2 + Valid bool + func (dst *Point) Scan(src any) error + func (dst *Point) UnmarshalJSON(point []byte) error + func (p *Point) ScanPoint(v Point) error + func (p Point) PointValue() (Point, error) + func (src Point) MarshalJSON() ([]byte, error) + func (src Point) Value() (driver.Value, error) + type PointCodec struct + func (PointCodec) FormatSupported(format int16) bool + func (PointCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (PointCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (PointCodec) PreferredFormat() int16 + func (c PointCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c PointCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type PointScanner interface + ScanPoint func(v Point) error + type PointValuer interface + PointValue func() (Point, error) + type Polygon struct + P []Vec2 + Valid bool + func (p *Polygon) Scan(src any) error + func (p *Polygon) ScanPolygon(v Polygon) error + func (p Polygon) PolygonValue() (Polygon, error) + func (p Polygon) Value() (driver.Value, error) + type PolygonCodec struct + func (PolygonCodec) FormatSupported(format int16) bool + func (PolygonCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (PolygonCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (PolygonCodec) PreferredFormat() int16 + func (c PolygonCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c PolygonCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type PolygonScanner interface + ScanPolygon func(v Polygon) error + type PolygonValuer interface + PolygonValue func() (Polygon, error) + type PreallocBytes []byte + func (b *PreallocBytes) ScanBytes(v []byte) error + type QCharCodec struct + func (QCharCodec) FormatSupported(format int16) bool + func (QCharCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (QCharCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (QCharCodec) PreferredFormat() int16 + func (c QCharCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c QCharCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Range struct + Lower T + LowerType BoundType + Upper T + UpperType BoundType + Valid bool + func (r *Range[T]) ScanBounds() (lowerTarget, upperTarget any) + func (r *Range[T]) ScanNull() error + func (r *Range[T]) SetBoundTypes(lower, upper BoundType) error + func (r Range[T]) BoundTypes() (lower, upper BoundType) + func (r Range[T]) Bounds() (lower, upper any) + func (r Range[T]) IsNull() bool + type RangeCodec struct + ElementType *Type + func (c *RangeCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c *RangeCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (c *RangeCodec) FormatSupported(format int16) bool + func (c *RangeCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (c *RangeCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (c *RangeCodec) PreferredFormat() int16 + type RangeScanner interface + ScanBounds func() (lowerTarget, upperTarget any) + ScanNull func() error + SetBoundTypes func(lower, upper BoundType) error + type RangeValuer interface + BoundTypes func() (lower, upper BoundType) + Bounds func() (lower, upper any) + IsNull func() bool + type RecordCodec struct + func (RecordCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (RecordCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + func (RecordCodec) FormatSupported(format int16) bool + func (RecordCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (RecordCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (RecordCodec) PreferredFormat() int16 + type ScanPlan interface + Scan func(src []byte, target any) error + type SkipUnderlyingTypePlanner interface + SkipUnderlyingTypePlan func() + type TID struct + BlockNumber uint32 + OffsetNumber uint16 + Valid bool + func (b *TID) ScanTID(v TID) error + func (b TID) TIDValue() (TID, error) + func (dst *TID) Scan(src any) error + func (src TID) Value() (driver.Value, error) + type TIDCodec struct + func (TIDCodec) FormatSupported(format int16) bool + func (TIDCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (TIDCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (TIDCodec) PreferredFormat() int16 + func (c TIDCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c TIDCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type TIDScanner interface + ScanTID func(v TID) error + type TIDValuer interface + TIDValue func() (TID, error) + type Text struct + String string + Valid bool + func (dst *Text) Scan(src any) error + func (dst *Text) UnmarshalJSON(b []byte) error + func (src Text) MarshalJSON() ([]byte, error) + func (src Text) Value() (driver.Value, error) + func (t *Text) ScanText(v Text) error + func (t Text) TextValue() (Text, error) + type TextCodec struct + func (TextCodec) FormatSupported(format int16) bool + func (TextCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (TextCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (TextCodec) PreferredFormat() int16 + func (c TextCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c TextCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type TextFormatOnlyCodec struct + func (TextFormatOnlyCodec) PreferredFormat() int16 + func (c *TextFormatOnlyCodec) FormatSupported(format int16) bool + type TextScanner interface + ScanText func(v Text) error + type TextValuer interface + TextValue func() (Text, error) + type Time struct + Microseconds int64 + Valid bool + func (t *Time) Scan(src any) error + func (t *Time) ScanTime(v Time) error + func (t Time) TimeValue() (Time, error) + func (t Time) Value() (driver.Value, error) + type TimeCodec struct + func (TimeCodec) FormatSupported(format int16) bool + func (TimeCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (TimeCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (TimeCodec) PreferredFormat() int16 + func (c TimeCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c TimeCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type TimeScanner interface + ScanTime func(v Time) error + type TimeValuer interface + TimeValue func() (Time, error) + type Timestamp struct + InfinityModifier InfinityModifier + Time time.Time + Valid bool + func (ts *Timestamp) Scan(src any) error + func (ts *Timestamp) ScanTimestamp(v Timestamp) error + func (ts *Timestamp) UnmarshalJSON(b []byte) error + func (ts Timestamp) MarshalJSON() ([]byte, error) + func (ts Timestamp) TimestampValue() (Timestamp, error) + func (ts Timestamp) Value() (driver.Value, error) + type TimestampCodec struct + func (TimestampCodec) FormatSupported(format int16) bool + func (TimestampCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (TimestampCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (TimestampCodec) PreferredFormat() int16 + func (c TimestampCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c TimestampCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type TimestampScanner interface + ScanTimestamp func(v Timestamp) error + type TimestampValuer interface + TimestampValue func() (Timestamp, error) + type Timestamptz struct + InfinityModifier InfinityModifier + Time time.Time + Valid bool + func (tstz *Timestamptz) Scan(src any) error + func (tstz *Timestamptz) ScanTimestamptz(v Timestamptz) error + func (tstz *Timestamptz) UnmarshalJSON(b []byte) error + func (tstz Timestamptz) MarshalJSON() ([]byte, error) + func (tstz Timestamptz) TimestamptzValue() (Timestamptz, error) + func (tstz Timestamptz) Value() (driver.Value, error) + type TimestamptzCodec struct + func (TimestamptzCodec) FormatSupported(format int16) bool + func (TimestamptzCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (TimestamptzCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (TimestamptzCodec) PreferredFormat() int16 + func (c TimestamptzCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c TimestamptzCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type TimestamptzScanner interface + ScanTimestamptz func(v Timestamptz) error + type TimestamptzValuer interface + TimestamptzValue func() (Timestamptz, error) + type TryWrapEncodePlanFunc func(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + type TryWrapScanPlanFunc func(target any) (plan WrappedScanPlanNextSetter, nextTarget any, ok bool) + type Type struct + Codec Codec + Name string + OID uint32 + type UUID struct + Bytes [16]byte + Valid bool + func (b *UUID) ScanUUID(v UUID) error + func (b UUID) UUIDValue() (UUID, error) + func (dst *UUID) Scan(src any) error + func (dst *UUID) UnmarshalJSON(src []byte) error + func (src UUID) MarshalJSON() ([]byte, error) + func (src UUID) Value() (driver.Value, error) + type UUIDCodec struct + func (UUIDCodec) FormatSupported(format int16) bool + func (UUIDCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (UUIDCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (UUIDCodec) PreferredFormat() int16 + func (c UUIDCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c UUIDCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type UUIDScanner interface + ScanUUID func(v UUID) error + type UUIDValuer interface + UUIDValue func() (UUID, error) + type Uint32 struct + Uint32 uint32 + Valid bool + func (dst *Uint32) Scan(src any) error + func (n *Uint32) ScanUint32(v Uint32) error + func (n Uint32) Uint32Value() (Uint32, error) + func (src Uint32) Value() (driver.Value, error) + type Uint32Codec struct + func (Uint32Codec) FormatSupported(format int16) bool + func (Uint32Codec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan + func (Uint32Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan + func (Uint32Codec) PreferredFormat() int16 + func (c Uint32Codec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) + func (c Uint32Codec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) + type Uint32Scanner interface + ScanUint32 func(v Uint32) error + type Uint32Valuer interface + Uint32Value func() (Uint32, error) + type UndecodedBytes []byte + type Vec2 struct + X float64 + Y float64 + type WrappedEncodePlanNextSetter interface + SetNext func(EncodePlan) + func TryWrapArrayEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + func TryWrapBuiltinTypeEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + func TryWrapDerefPointerEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + func TryWrapFindUnderlyingTypeEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + func TryWrapMultiDimSliceEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + func TryWrapSliceEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + func TryWrapStructEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) + type WrappedScanPlanNextSetter interface + SetNext func(ScanPlan) + func TryFindUnderlyingTypeScanPlan(dst any) (plan WrappedScanPlanNextSetter, nextDst any, ok bool) + func TryPointerPointerScanPlan(target any) (plan WrappedScanPlanNextSetter, nextTarget any, ok bool) + func TryWrapBuiltinTypeScanPlan(target any) (plan WrappedScanPlanNextSetter, nextDst any, ok bool) + func TryWrapPtrArrayScanPlan(target any) (plan WrappedScanPlanNextSetter, nextValue any, ok bool) + func TryWrapPtrMultiDimSliceScanPlan(target any) (plan WrappedScanPlanNextSetter, nextValue any, ok bool) + func TryWrapPtrSliceScanPlan(target any) (plan WrappedScanPlanNextSetter, nextValue any, ok bool) + func TryWrapStructScanPlan(target any) (plan WrappedScanPlanNextSetter, nextValue any, ok bool) Other modules containing this package github.com/raw0w/pgx