(m *pgtype.Map, arg any)
| 14 | ) |
| 15 | |
| 16 | func convertSimpleArgument(m *pgtype.Map, arg any) (any, error) { |
| 17 | buf, err := m.Encode(0, TextFormatCode, arg, []byte{}) |
| 18 | if err != nil { |
| 19 | return nil, err |
| 20 | } |
| 21 | if buf == nil { |
| 22 | return nil, nil |
| 23 | } |
| 24 | return string(buf), nil |
| 25 | } |
| 26 | |
| 27 | func encodeCopyValue(m *pgtype.Map, buf []byte, oid uint32, arg any) ([]byte, error) { |
| 28 | sp := len(buf) |
no test coverage detected