inOutString method

Future<OracleVariable> inOutString({
  1. int maxSize = 4000,
})

Create an IN/OUT String parameter (user-friendly helper)

Example:

final nameInOut = await conn.inOutString(maxSize: 100);
await nameInOut.setValue('John');
await conn.callproc('process_name', keywordParameters: {'name': nameInOut});
print('Processed: ${await nameInOut.getValue()}');
nameInOut.dispose();

Implementation

Future<OracleVariable> inOutString({int maxSize = 4000}) async {
  return createVar(
    oracleType: DPI_ORACLE_TYPE_VARCHAR,
    nativeType: DPI_NATIVE_TYPE_BYTES,
    size: maxSize,
    direction: BindDirection.inOut,
  );
}