func (p *GraphServiceClient) Execute(sessionId int64, stmt []byte) (_r *ExecutionResponse, err error) {
  args := GraphServiceExecuteArgs{
    SessionId : sessionId,
    Stmt : stmt,
  }
  err = p.CC.SendMsg("execute", &args, thrift.CALL)
  if err != nil { return }
  return p.recvExecute()
}
Parameters:
- SessionId
- Stmt
package graph
import (
	"bytes"
	"context"
	"sync"
	"fmt"
	thrift "github.com/facebook/fbthrift/thrift/lib/go/thrift"
	nebula0 "github.com/vesoft-inc/nebula-go/v2/nebula"
)
var _ = thrift.ZERO
var _ = fmt.Printf
var _ = sync.Mutex{}
var _ = bytes.Equal
var _ = context.Background
var _ = nebula0.GoUnusedProtection__
type GraphService interface {
  Authenticate(ctx context.Context, username []byte, password []byte) (_r *AuthResponse, err error)
  Signout(ctx context.Context, sessionId int64) (err error)
  Execute(ctx context.Context, sessionId int64, stmt []byte) (_r *ExecutionResponse, err error)
  ExecuteJson(ctx context.Context, sessionId int64, stmt []byte) (_r []byte, err error)
  VerifyClientVersion(ctx context.Context, req *VerifyClientVersionReq) (_r *VerifyClientVersionResp, err error)
}
type GraphServiceClientInterface interface {
  thrift.ClientInterface
  Authenticate(username []byte, password []byte) (_r *AuthResponse, err error)
  Signout(sessionId int64) (err error)
  Execute(sessionId int64, stmt []byte) (_r *ExecutionResponse, err error)
  ExecuteJson(sessionId int64, stmt []byte) (_r []byte, err error)
  VerifyClientVersion(req *VerifyClientVersionReq) (_r *VerifyClientVersionResp, err error)
}
type GraphServiceClient struct {
  GraphServiceClientInterface
  CC thrift.ClientConn
}
func(client *GraphServiceClient) Open() error {
  return client.CC.Open()
}
func(client *GraphServiceClient) Close() error {
  return client.CC.Close()
}
func(client *GraphServiceClient) IsOpen() bool {
  return client.CC.IsOpen()
}
func NewGraphServiceClientFactory(t thrift.Transport, f thrift.ProtocolFactory) *GraphServiceClient {
  return &GraphServiceClient{ CC: thrift.NewClientConn(t, f) }
}
func NewGraphServiceClient(t thrift.Transport, iprot thrift.Protocol, oprot thrift.Protocol) *GraphServiceClient {
  return &GraphServiceClient{ CC: thrift.NewClientConnWithProtocols(t, iprot, oprot) }
}
func NewGraphServiceClientProtocol(prot thrift.Protocol) *GraphServiceClient {
  return NewGraphServiceClient(prot.Transport(), prot, prot)
}
func (p *GraphServiceClient) Authenticate(username []byte, password []byte) (_r *AuthResponse, err error) {
  args := GraphServiceAuthenticateArgs{
    Username : username,
    Password : password,
  }
  err = p.CC.SendMsg("authenticate", &args, thrift.CALL)
  if err != nil { return }
  return p.recvAuthenticate()
}
func (p *GraphServiceClient) recvAuthenticate() (value *AuthResponse, err error) {
  var result GraphServiceAuthenticateResult
  err = p.CC.RecvMsg("authenticate", &result)
  if err != nil { return }
  return result.GetSuccess(), nil
}
func (p *GraphServiceClient) Signout(sessionId int64) (err error) {
  args := GraphServiceSignoutArgs{
    SessionId : sessionId,
  }
  err = p.CC.SendMsg("signout", &args, thrift.ONEWAY)
  if err != nil { return }
  return
}