use of io.mycat.mysqlclient.command.OkCommand in project Mycat2 by MyCATApache.
the class VertxConnection method update.
public Future<SqlResult> update(String sql) {
synchronized (VertxConnection.this) {
Future<SqlResult> sqlResultFuture = future.transform(unused -> Future.future(promise -> {
checkException();
OkCommand queryCommand = new OkCommand(sql, netSocket, promise);
netSocket.handler(queryCommand);
queryCommand.write();
promise.future().onSuccess(event -> VertxConnection.this.serverstatus = queryCommand.serverstatus);
}));
future = sqlResultFuture.mapEmpty();
return sqlResultFuture;
}
}
Aggregations