Tell returns the current read or write location of the large object descriptor.
()
| 144 | |
| 145 | // Tell returns the current read or write location of the large object descriptor. |
| 146 | func (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. |
| 152 | func (o *LargeObject) Truncate(size int64) (err error) { |