LargeObjectManager

Manager for PostgreSQL Large Objects associated with a specific connection. NOTE: All operations on Large Objects must be performed within a transaction (BEGIN ... COMMIT/ROLLBACK) to be valid in PostgreSQL. Note: PostgreSQL OIDs are unsigned 32-bit integers. In the JVM, they are represented as signed Int, meaning values above 2.14B will appear as negative numbers if printed. This is expected and perfectly safe for database operations.

Constructors

Link copied to clipboard
internal constructor(session: OctaviusSession)

Functions

Link copied to clipboard
fun create(): Int

Creates a new empty Large Object and returns its OID.

Link copied to clipboard
fun open(oid: Int, mode: Int = LargeObjectMode.READ_WRITE): LargeObject

Opens an existing Large Object and returns a descriptor allowing read/write operations.

Link copied to clipboard
fun unlink(oid: Int)

Deletes a Large Object from the database.