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

Method writeField2

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

Source from the content-addressed store, hash-verified

4268}
4269
4270func (p *TSPrepareReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
4271 if err := oprot.WriteFieldBegin(ctx, "sql", thrift.STRING, 2); err != nil {
4272 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:sql: ", p), err) }
4273 if err := oprot.WriteString(ctx, string(p.Sql)); err != nil {
4274 return thrift.PrependError(fmt.Sprintf("%T.sql (2) field write error: ", p), err) }
4275 if err := oprot.WriteFieldEnd(ctx); err != nil {
4276 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:sql: ", p), err) }
4277 return err
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 {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected