MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / dropCollections

Method dropCollections

internal/search/reindex.go:165–175  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

163}
164
165func (r *ReindexService) dropCollections(ctx context.Context) error {
166 r.updateProgress("drop_collections", 0, 0)
167 logrus.Info("Dropping all collections")
168
169 if err := r.client.DropAllCollections(ctx); err != nil {
170 return err
171 }
172
173 logrus.Info("All collections dropped successfully")
174 return nil
175}
176
177func (r *ReindexService) createCollections(ctx context.Context) error {
178 r.updateProgress("create_collections", 0, 0)

Callers 1

StartReindexMethod · 0.95

Calls 3

updateProgressMethod · 0.95
DropAllCollectionsMethod · 0.80
InfoMethod · 0.45

Tested by

no test coverage detected