MCPcopy
hub / github.com/jackc/pgx / getMultiRangeElementOID

Method getMultiRangeElementOID

conn.go:1386–1395  ·  view source on GitHub ↗
(ctx context.Context, oid uint32)

Source from the content-addressed store, hash-verified

1384}
1385
1386func (c *Conn) getMultiRangeElementOID(ctx context.Context, oid uint32) (uint32, error) {
1387 var typelem uint32
1388
1389 err := c.QueryRow(ctx, "select rngtypid from pg_range where rngmultitypid=$1", oid).Scan(&typelem)
1390 if err != nil {
1391 return 0, err
1392 }
1393
1394 return typelem, nil
1395}
1396
1397func (c *Conn) getCompositeFields(ctx context.Context, oid uint32) ([]pgtype.CompositeCodecField, error) {
1398 var typrelid uint32

Callers 1

LoadTypeMethod · 0.95

Calls 2

QueryRowMethod · 0.95
ScanMethod · 0.65

Tested by

no test coverage detected