unified-storage: add UnixTimestamp support to the sqlkv implementation (#115651)

* unified-storage: add `UnixTimestamp` support to sqlkv implementation

* unified-storage: improve tests and enable all of them on sqlkv
This commit is contained in:
Renato Costa
2025-12-19 15:35:22 -05:00
committed by GitHub
parent 3522efdf32
commit 0284d1e669
3 changed files with 143 additions and 132 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import (
"iter"
"strings"
"text/template"
"time"
"github.com/google/uuid"
"github.com/grafana/grafana/pkg/storage/unified/sql/db"
@@ -556,7 +557,7 @@ func (k *sqlKV) BatchDelete(ctx context.Context, section string, keys []string)
}
func (k *sqlKV) UnixTimestamp(ctx context.Context) (int64, error) {
panic("not implemented!")
return time.Now().Unix(), nil
}
func closeRows[T any](rows db.Rows, yield func(T, error) bool) {