OracleVariable class

Represents a bind variable for IN/OUT parameters

Similar to python-oracledb's Var class. Used for binding values to SQL statements and PL/SQL procedures, especially for OUT parameters.

Properties

arraySize int
no setter
direction BindDirection
no setter
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setter
nativeType int
no setter
oracleType int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter
varPointer Pointer<dpiVar>
no setter

Methods

dispose() → void
Release the variable
getArrayValue(int index) → dynamic
Get value at a specific position
getValue() → dynamic
Get single value (for non-array variables)
getValues() List
Get all values from the array
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setArrayValue(int index, dynamic value) → void
Set a value at a specific position in the array
setValue(dynamic value) → void
Set a single value (for non-array variables)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create({required DpiOracle dpiOracle, required Pointer<dpiConn> connection, required Pointer<dpiContext> context, required int oracleType, required int nativeType, int size = 0, int arraySize = 1, BindDirection direction = BindDirection.input}) Future<OracleVariable>
Create a new bind variable