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

Method writeField3

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

Source from the content-addressed store, hash-verified

4278}
4279
4280func (p *TSPrepareReq) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
4281 if err := oprot.WriteFieldBegin(ctx, "statementName", thrift.STRING, 3); err != nil {
4282 return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:statementName: ", p), err) }
4283 if err := oprot.WriteString(ctx, string(p.StatementName)); err != nil {
4284 return thrift.PrependError(fmt.Sprintf("%T.statementName (3) field write error: ", p), err) }
4285 if err := oprot.WriteFieldEnd(ctx); err != nil {
4286 return thrift.PrependError(fmt.Sprintf("%T write field end error 3:statementName: ", p), err) }
4287 return err
4288}
4289
4290func (p *TSPrepareReq) Equals(other *TSPrepareReq) bool {
4291 if p == other {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected