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

Method writeField1

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

Source from the content-addressed store, hash-verified

4258}
4259
4260func (p *TSPrepareReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
4261 if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.I64, 1); err != nil {
4262 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionId: ", p), err) }
4263 if err := oprot.WriteI64(ctx, int64(p.SessionId)); err != nil {
4264 return thrift.PrependError(fmt.Sprintf("%T.sessionId (1) field write error: ", p), err) }
4265 if err := oprot.WriteFieldEnd(ctx); err != nil {
4266 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionId: ", p), err) }
4267 return err
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 {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected