(inserts []string)
| 973 | } |
| 974 | |
| 975 | func (s *Session) ExecuteBatchStatement(inserts []string) error { |
| 976 | request := rpc.TSExecuteBatchStatementReq{ |
| 977 | SessionId: s.sessionId, |
| 978 | Statements: inserts, |
| 979 | } |
| 980 | r, err := s.client.ExecuteBatchStatement(context.Background(), &request) |
| 981 | if err != nil && r == nil { |
| 982 | if s.reconnect() { |
| 983 | request.SessionId = s.sessionId |
| 984 | r, err = s.client.ExecuteBatchStatement(context.Background(), &request) |
| 985 | } |
| 986 | } |
| 987 | if err != nil { |
| 988 | return err |
| 989 | } |
| 990 | return VerifySuccess(r) |
| 991 | } |
| 992 | |
| 993 | func (s *Session) ExecuteRawDataQuery(paths []string, startTime int64, endTime int64) (*SessionDataSet, error) { |
| 994 | request := rpc.TSRawDataQueryReq{ |
nothing calls this directly
no test coverage detected