MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / InsertRecord

Method InsertRecord

internal/data/list.go:66–66  ·  view source on GitHub ↗

InsertRecord inserts a record with the given key (sequence number in big-endian format). Returns true if an existing record was replaced, false if a new record was inserted.

(key []byte, record *core.Record)

Source from the content-addressed store, hash-verified

64 // InsertRecord inserts a record with the given key (sequence number in big-endian format).
65 // Returns true if an existing record was replaced, false if a new record was inserted.
66 InsertRecord(key []byte, record *core.Record) bool
67
68 // Delete removes the record with the given key.
69 // Returns true if the record was found and deleted, false otherwise.

Callers 5

buildBTreeIdxMethod · 0.65
TestBTree_UpdateFunction · 0.65
PushMethod · 0.65

Implementers 2

DoublyLinkedListinternal/data/doubly_linked_list.go
BTreeinternal/data/btree.go

Calls

no outgoing calls

Tested by 3

TestBTree_UpdateFunction · 0.52