OracleLob class
Represents a Large Object (LOB) in Oracle
Similar to python-oracledb's LOB class. Supports CLOB, BLOB, NCLOB, and BFILE. LOBs can be used to store and retrieve large amounts of data.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setter
- isResourceOpen → bool
-
Check if LOB resource is open for buffering
no setter
-
lobPointer
→ Pointer<
dpiLob> -
no setter
- lobType → LobType
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Close the LOB (for temporary LOBs)
-
closeResource(
) → Future< void> - Close the LOB resource and flush buffered writes
-
dispose(
) → void - Release the LOB resources
-
isTemporary(
) → Future< bool> - Check if this is a temporary LOB
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openResource(
) → Future< void> - Open the LOB resource for buffered operations
-
read(
{int offset = 1, int? amount}) → Future - Read data from the LOB
-
setFromBytes(
dynamic data) → Future< void> - Set LOB contents from bytes in a single operation
-
size(
) → Future< int> - Get the size of the LOB in bytes (for BLOB/BFILE) or characters (for CLOB/NCLOB)
-
toString(
) → String -
A string representation of this object.
inherited
-
trim(
int newSize) → Future< void> - Trim the LOB to the specified size
-
write(
dynamic data, {int? offset}) → Future< void> - Write data to the LOB
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createTemp(
{required DpiOracle dpiOracle, required Pointer< dpiConn> connection, required Pointer<dpiContext> context, required LobType lobType}) → Future<OracleLob> - Create a new temporary LOB
-
wrap(
{required DpiOracle dpiOracle, required Pointer< dpiLob> lobPtr, required Pointer<dpiContext> context, required LobType lobType, bool isTemporary = false}) → OracleLob - Wrap an existing LOB pointer