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

Method DeleteStorageGroups

client/session.go:271–282  ·  view source on GitHub ↗

* *delete multiple storage group *param *storageGroupIds: []string, paths of the target storage groups *return *error: correctness of operation */

(storageGroupIds ...string)

Source from the content-addressed store, hash-verified

269 *error: correctness of operation
270 */
271func (s *Session) DeleteStorageGroups(storageGroupIds ...string) error {
272 r, err := s.client.DeleteStorageGroups(context.Background(), s.sessionId, storageGroupIds)
273 if err != nil && r == nil {
274 if s.reconnect() {
275 r, err = s.client.DeleteStorageGroups(context.Background(), s.sessionId, storageGroupIds)
276 }
277 }
278 if err != nil {
279 return err
280 }
281 return VerifySuccess(r)
282}
283
284/*
285 *create single time series

Callers

nothing calls this directly

Calls 3

reconnectMethod · 0.95
VerifySuccessFunction · 0.85
DeleteStorageGroupsMethod · 0.65

Tested by

no test coverage detected