export method

void export(
  1. int oid,
  2. String filename, {
  3. Allocator allocator = malloc,
})

Exports a large object to a local file

Implementation

void export(int oid, String filename, {Allocator allocator = malloc}) {
  if (psql.pq.lo_export(psql.conn, oid,
          filename.asCharP(allocator: allocator, encoding: psql.encoding)) <
      0) throw LibPqException(psql.lastErrorMessage);
}