aboutsummaryrefslogtreecommitdiff
path: root/oblast.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-11-10 00:53:34 +0100
committerStefan Majewsky <majewsky@gmx.net>2026-11-10 00:53:34 +0100
commit5125060a1726c795219350c01ca23f1f99d9b08c (patch)
treea74519621a7d73fd46f5175dd0072403841259d1 /oblast.go
parent1cc8b3d25658eb3ee320cb43265ddae289649786 (diff)
downloadgo-oblast-5125060a1726c795219350c01ca23f1f99d9b08c.tar.gz
move RuntimeIndex
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)
+}