mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
enriched metadata for tables added support for the concept of a table and field owners in metadata; mechanism to derive owner from http request metadata; metadata for table description
21 lines
421 B
Go
21 lines
421 B
Go
// Copyright 2021 Molecula Corp. All rights reserved.
|
|
package pilosa
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// mustOpenIndex returns a new, opened index at a temporary path. Panic on error.
|
|
func mustOpenIndex(tb testing.TB, opt IndexOptions) *Index {
|
|
h := newTestHolder(tb)
|
|
index, err := h.CreateIndex("i", "", opt)
|
|
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
index.keys = opt.Keys
|
|
index.trackExistence = opt.TrackExistence
|
|
|
|
return index
|
|
}
|