pgx

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 6 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTypes

func RegisterTypes(ctx context.Context, conn *pgx.Conn) error

Types

type HalfVectorCodec

type HalfVectorCodec struct{}

func (HalfVectorCodec) DecodeDatabaseSQLValue

func (c HalfVectorCodec) DecodeDatabaseSQLValue(m *pgtype.Map, oid uint32, format int16, src []byte) (driver.Value, error)

func (HalfVectorCodec) DecodeValue

func (c HalfVectorCodec) DecodeValue(m *pgtype.Map, oid uint32, format int16, src []byte) (any, error)

func (HalfVectorCodec) FormatSupported

func (HalfVectorCodec) FormatSupported(format int16) bool

func (HalfVectorCodec) PlanEncode

func (HalfVectorCodec) PlanEncode(m *pgtype.Map, oid uint32, format int16, value any) pgtype.EncodePlan

func (HalfVectorCodec) PlanScan

func (HalfVectorCodec) PlanScan(m *pgtype.Map, oid uint32, format int16, target any) pgtype.ScanPlan

func (HalfVectorCodec) PreferredFormat

func (HalfVectorCodec) PreferredFormat() int16

type SparseVectorCodec

type SparseVectorCodec struct{}

func (SparseVectorCodec) DecodeDatabaseSQLValue

func (c SparseVectorCodec) DecodeDatabaseSQLValue(m *pgtype.Map, oid uint32, format int16, src []byte) (driver.Value, error)

func (SparseVectorCodec) DecodeValue

func (c SparseVectorCodec) DecodeValue(m *pgtype.Map, oid uint32, format int16, src []byte) (any, error)

func (SparseVectorCodec) FormatSupported

func (SparseVectorCodec) FormatSupported(format int16) bool

func (SparseVectorCodec) PlanEncode

func (SparseVectorCodec) PlanEncode(m *pgtype.Map, oid uint32, format int16, value any) pgtype.EncodePlan

func (SparseVectorCodec) PlanScan

func (SparseVectorCodec) PlanScan(m *pgtype.Map, oid uint32, format int16, target any) pgtype.ScanPlan

func (SparseVectorCodec) PreferredFormat

func (SparseVectorCodec) PreferredFormat() int16

type VectorCodec

type VectorCodec struct{}

func (VectorCodec) DecodeDatabaseSQLValue

func (c VectorCodec) DecodeDatabaseSQLValue(m *pgtype.Map, oid uint32, format int16, src []byte) (driver.Value, error)

func (VectorCodec) DecodeValue

func (c VectorCodec) DecodeValue(m *pgtype.Map, oid uint32, format int16, src []byte) (any, error)

func (VectorCodec) FormatSupported

func (VectorCodec) FormatSupported(format int16) bool

func (VectorCodec) PlanEncode

func (VectorCodec) PlanEncode(m *pgtype.Map, oid uint32, format int16, value any) pgtype.EncodePlan

func (VectorCodec) PlanScan

func (VectorCodec) PlanScan(m *pgtype.Map, oid uint32, format int16, target any) pgtype.ScanPlan

func (VectorCodec) PreferredFormat

func (VectorCodec) PreferredFormat() int16

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL