MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Get

Method Get

driver/crdt/db.go:157–164  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

155}
156
157func (db *DB) Get(key []byte) ([]byte, error) {
158 key = db.EncodeKey(key)
159 val, err := db.db.Get(db.ctx, key)
160 if err == datastore.ErrNotFound {
161 return nil, nil
162 }
163 return val, err
164}
165
166func (db *DB) Delete(key []byte) error {
167 key = db.EncodeKey(key)

Callers

nothing calls this directly

Calls 1

EncodeKeyMethod · 0.95

Tested by

no test coverage detected