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

Method getArrayElementOID

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

Source from the content-addressed store, hash-verified

1362}
1363
1364func (c *Conn) getArrayElementOID(ctx context.Context, oid uint32) (uint32, error) {
1365 var typelem uint32
1366
1367 err := c.QueryRow(ctx, "select typelem from pg_type where oid=$1", oid).Scan(&typelem)
1368 if err != nil {
1369 return 0, err
1370 }
1371
1372 return typelem, nil
1373}
1374
1375func (c *Conn) getRangeElementOID(ctx context.Context, oid uint32) (uint32, error) {
1376 var typelem uint32

Callers 1

LoadTypeMethod · 0.95

Calls 2

QueryRowMethod · 0.95
ScanMethod · 0.65

Tested by

no test coverage detected