executeWithParameter method
Implementation
Future<ExecutionResponse> executeWithParameter(int sessionId, Int8List stmt,
Map<Int8List, t_nebula.Value> parameterMap) async {
oprot.writeMessageBegin(
new TMessage("executeWithParameter", TMessageType.CALL, nextSeqid()));
executeWithParameter_args args = new executeWithParameter_args();
args.sessionId = sessionId;
args.stmt = stmt;
args.parameterMap = parameterMap;
args.write(oprot);
oprot.writeMessageEnd();
await oprot.trans_.flush();
TMessage msg = iprot.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
TApplicationError error = TApplicationError.read(iprot);
iprot.readMessageEnd();
throw error;
}
executeWithParameter_result result = new executeWithParameter_result();
result.read(iprot);
iprot.readMessageEnd();
if (result.isSetSuccess()) {
return result.success!;
}
throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
"executeWithParameter failed: unknown result");
}