bindByPos method
Bind a value by position (1-based)
Public API for binding parameters to specific positions.
Implementation
Future<void> bindByPos(int position, dynamic value) async {
if (_disposed) {
throw OracleStatementException('Statement has been closed', sql: _sql);
}
if (value is String) {
await _bindString(position, value);
} else if (value is int) {
await _bindInt(position, value);
} else if (value is double) {
await _bindDouble(position, value);
} else if (value == null) {
await _bindNull(position);
} else {
throw OracleStatementException(
'Unsupported parameter type: ${value.runtimeType}',
sql: _sql,
);
}
}