open method

void open(
  1. int id
)

Opens a large object for reading/writing

Implementation

void open(int id) {
  psql.startTransaction();
  fd = psql.pq.lo_open(psql.conn, id, INV_READ | INV_WRITE);
  if (fd < 0) {
    psql.rollbackTransaction();
    throw LibPqException(psql.lastErrorMessage);
  }
}