method
Store.GetPreference
Public method Store.GetPreference from github.com/riducms/ridu/adapters/sqlite.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collectionID | schema.StableID | The collectionID value. |
userID | string | The userID value. |
key | string | The key value. |
Returns
The declared result.
(store.Preference, error)Full signature
func (backend *Store) GetPreference(
ctx context.Context,
collectionID schema.StableID,
userID,
key string,
) (store.Preference, error)Related types
StoreA SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.
StableIDA deterministic identifier for schema evolution.
PreferenceOne opaque per-user setting.