executeJsonWithParameter method
Implementation
Future<Int8List> executeJsonWithParameter(int sessionId, Int8List stmt,
Map<Int8List, t_nebula.Value> parameterMap) async {
oprot.writeMessageBegin(new TMessage(
"executeJsonWithParameter", TMessageType.CALL, nextSeqid()));
executeJsonWithParameter_args args = new executeJsonWithParameter_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;
}
executeJsonWithParameter_result result =
new executeJsonWithParameter_result();
result.read(iprot);
iprot.readMessageEnd();
if (result.isSetSuccess()) {
return result.success!;
}
throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
"executeJsonWithParameter failed: unknown result");
}