Go-datastore and return values
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia leggendo le definizioni delle interfacce Datastore.Get e Put e la documentazione del repository relativa al datastore, se presente. Determina se l'allocazione dei tipi e il marshaling spettano al datastore o ai suoi client, quindi documenta un contratto definito o proponine uno che spieghi come vengono archiviati e recuperati valori Go arbitrari.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Datastore.Get returns its result as a return value, which means that the Datastore implementation needs to allocate it. But if one wishes to store arbitrary types of data into a datastore, how can Get know what type of value to allocate? The only ways I can think of are
- either the Datastore implementation needs to memoize the reflect.Type of every value as it is Put, so it can recall the type based on the key when it is Get, or
- the Datastore implementation takes on initialization a mapping from key prefixes/types/something else to reflect.Types, so it can again determine the correct type to allocate based on the key,
but these would bring considerable complexity to any Datastore implementation that wishes to allow storage and retrieval of arbitrarily typed data. Am I missing something obvious, or is this by design? Should any unmarshaling from datastore representations to Go objects (and vice versa) be the client code's responsibility?
- Lingua principale
- Go
- Stelle
- 248
- Fork
- 68
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ipfs/go-datastore
-
exp/novice help wanted kind/enhancement status/ready
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ipfs/go-datastore#160 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ipfs/go-datastore#139 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ipfs/go-datastore#116 · 31 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
ipfs/go-datastore#102 · 5 commenti ·
-
Add ceph rados datastoreAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ipfs/go-datastore#101 · 4 commenti · 1 reazione ·
Tutte le issue di ipfs/go-datastore
Issue simili
-
area/networking kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
siderolabs/talos#14972 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
kubectl wait outputs cryptic "error: unrecognized condition: []" when --for is omittedForse già presa @muskan-creates352 l’ha presa oggi. Apertakind/bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
kubernetes/kubectl#1910 · 1 commento ·
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
stacklok/toolhive-catalog#1967 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
unbound-force/gaze#353 ·
I maintainer di solito rispondono entro 1 giorno