MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / writeField0

Method writeField0

rpc/client.go:29074–29085  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

29072}
29073
29074func (p *IClientRPCServiceExecuteStatementResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
29075 if p.IsSetSuccess() {
29076 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
29077 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
29078 if err := p.Success.Write(ctx, oprot); err != nil {
29079 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
29080 }
29081 if err := oprot.WriteFieldEnd(ctx); err != nil {
29082 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
29083 }
29084 return err
29085}
29086
29087func (p *IClientRPCServiceExecuteStatementResult) String() string {
29088 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected