MCPcopy Create free account
hub / github.com/brimdata/super / CreatePool

Method CreatePool

db/api/local.go:66–75  ·  view source on GitHub ↗
(ctx context.Context, name string, sortKeys order.SortKeys, seekStride int, thresh int64)

Source from the content-addressed store, hash-verified

64}
65
66func (l *local) CreatePool(ctx context.Context, name string, sortKeys order.SortKeys, seekStride int, thresh int64) (ksuid.KSUID, error) {
67 if name == "" {
68 return ksuid.Nil, errors.New("no pool name provided")
69 }
70 pool, err := l.db.CreatePool(ctx, name, sortKeys, seekStride, thresh)
71 if err != nil {
72 return ksuid.Nil, err
73 }
74 return pool.ID, nil
75}
76
77func (l *local) RemovePool(ctx context.Context, id ksuid.KSUID) error {
78 return l.db.RemovePool(ctx, id)

Callers

nothing calls this directly

Calls 2

NewMethod · 0.80
CreatePoolMethod · 0.65

Tested by

no test coverage detected