grafana/pkg/infra/kvstore/model.go
Dan Cech 681de1ea89
add key/value store service (#36868)
* add key/value store service

* don't export kvStoreSQL, consumers should interact with KVStore & NamespacedKVStore

* add del method, avoid ErrNotFound (#38627)

* switch value column to medium text

Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2021-08-31 11:05:45 -04:00

22 lines
275 B
Go

package kvstore
import (
"time"
)
// Item stored in k/v store.
type Item struct {
Id int64
OrgId *int64
Namespace *string
Key *string
Value string
Created time.Time
Updated time.Time
}
func (i *Item) TableName() string {
return "kv_store"
}