aboutsummaryrefslogtreecommitdiff
path: root/oblast.go
diff options
context:
space:
mode:
Diffstat (limited to 'oblast.go')
-rw-r--r--oblast.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/oblast.go b/oblast.go
index 66b31b7..6f99e6f 100644
--- a/oblast.go
+++ b/oblast.go
@@ -79,3 +79,11 @@ func TupleSelect[R any](ctx context.Context, db gsql.Handle, query string, args
func TupleSelectOne[R any](ctx context.Context, db gsql.Handle, query string, args ...any) (R, error) {
return gg_oblast.TupleSelectOne[R](ctx, db, query, args...)
}
+
+// RuntimeIndex has moved to gg/oblast (follow the link below).
+type RuntimeIndex[R any, K comparable] = gg_oblast.RuntimeIndex[R, K]
+
+// NewRuntimeIndex has moved to gg/oblast (follow the link below).
+func NewRuntimeIndex[R any, K comparable](f func(R) K) RuntimeIndex[R, K] {
+ return gg_oblast.NewRuntimeIndex(f)
+}