mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
89569be3a6
* SQLStore: Fix InsertId * Prefs: Fix Insert return value * Fix tests * Add guidelines
17 lines
475 B
Go
17 lines
475 B
Go
package prefimpl
|
|
|
|
import (
|
|
"context"
|
|
|
|
pref "github.com/grafana/grafana/pkg/services/preference"
|
|
)
|
|
|
|
type store interface {
|
|
Get(context.Context, *pref.Preference) (*pref.Preference, error)
|
|
List(context.Context, *pref.Preference) ([]*pref.Preference, error)
|
|
// Insert adds a new preference and returns its sequential ID
|
|
Insert(context.Context, *pref.Preference) (int64, error)
|
|
Update(context.Context, *pref.Preference) error
|
|
DeleteByUser(context.Context, int64) error
|
|
}
|