mirror of
https://github.com/jackc/pgx.git
synced 2025-05-29 10:42:31 +00:00
Remove unused pgtype.Map field
This commit is contained in:
parent
ec8f7c4204
commit
e7f90ba6e4
@ -171,11 +171,10 @@ type Type struct {
|
|||||||
// Map is the mapping between PostgreSQL server types and Go type handling logic. It can encode values for
|
// Map is the mapping between PostgreSQL server types and Go type handling logic. It can encode values for
|
||||||
// transmission to a PostgreSQL server and scan received values.
|
// transmission to a PostgreSQL server and scan received values.
|
||||||
type Map struct {
|
type Map struct {
|
||||||
oidToType map[uint32]*Type
|
oidToType map[uint32]*Type
|
||||||
nameToType map[string]*Type
|
nameToType map[string]*Type
|
||||||
reflectTypeToName map[reflect.Type]string
|
reflectTypeToName map[reflect.Type]string
|
||||||
oidToFormatCode map[uint32]int16
|
oidToFormatCode map[uint32]int16
|
||||||
oidToResultFormatCode map[uint32]int16
|
|
||||||
|
|
||||||
reflectTypeToType map[reflect.Type]*Type
|
reflectTypeToType map[reflect.Type]*Type
|
||||||
|
|
||||||
@ -196,11 +195,10 @@ type Map struct {
|
|||||||
|
|
||||||
func NewMap() *Map {
|
func NewMap() *Map {
|
||||||
m := &Map{
|
m := &Map{
|
||||||
oidToType: make(map[uint32]*Type),
|
oidToType: make(map[uint32]*Type),
|
||||||
nameToType: make(map[string]*Type),
|
nameToType: make(map[string]*Type),
|
||||||
reflectTypeToName: make(map[reflect.Type]string),
|
reflectTypeToName: make(map[reflect.Type]string),
|
||||||
oidToFormatCode: make(map[uint32]int16),
|
oidToFormatCode: make(map[uint32]int16),
|
||||||
oidToResultFormatCode: make(map[uint32]int16),
|
|
||||||
|
|
||||||
memoizedScanPlans: make(map[uint32]map[reflect.Type][2]ScanPlan),
|
memoizedScanPlans: make(map[uint32]map[reflect.Type][2]ScanPlan),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user