mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* 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>
22 lines
275 B
Go
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"
|
|
}
|