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

Method Tell

large_objects.go:146–149  ·  view source on GitHub ↗

Tell returns the current read or write location of the large object descriptor.

()

Source from the content-addressed store, hash-verified

144
145// Tell returns the current read or write location of the large object descriptor.
146func (o *LargeObject) Tell() (n int64, err error) {
147 err = o.tx.QueryRow(o.ctx, "select lo_tell64($1)", o.fd).Scan(&n)
148 return n, err
149}
150
151// Truncate the large object to size.
152func (o *LargeObject) Truncate(size int64) (err error) {

Callers 2

testLargeObjectsFunction · 0.80

Calls 2

ScanMethod · 0.65
QueryRowMethod · 0.65

Tested by 2

testLargeObjectsFunction · 0.64