MCPcopy Create free account
hub / github.com/CPChain/chain / Put

Method Put

database/interface.go:12–12  ·  view source on GitHub ↗
(key []byte, value []byte)

Source from the content-addressed store, hash-verified

10// Putter wraps the database write operation supported by both batches and regular databases.
11type Putter interface {
12 Put(key []byte, value []byte) error
13}
14
15// Deleter wraps the database delete operation supported by both batches and regular databases.

Callers 15

testDBFuncsFunction · 0.65
testParallelDBFuncsFunction · 0.65
testBatchFuncsFunction · 0.65
TestIpfsDbWithWrongUrlFunction · 0.65
TestIpfsDatabase_HasFunction · 0.65
TestIpfsDatabase_DiscardFunction · 0.65
TestLDBDatabase_IteratorFunction · 0.65
TestLDBTableFuncsFunction · 0.65
PutMethod · 0.65
PutMethod · 0.65

Implementers 12

MemDatabasedatabase/memdb.go
memBatchdatabase/memdb.go
DummyDatabasedatabase/dummydb.go
IpfsDatabasedatabase/ipfs.go
LDBDatabasedatabase/leveldb.go
ldbBatchdatabase/leveldb.go
tabledatabase/leveldb.go
tableBatchdatabase/leveldb.go
txSortedMapcore/tx_list.go
txPricedListcore/tx_list.go
fakeDBForSignedBlocksRecordconsensus/dpor/dpor_util_test.go
fakeDbconsensus/dpor/snapshot_test.go

Calls

no outgoing calls

Tested by 11

testDBFuncsFunction · 0.52
testParallelDBFuncsFunction · 0.52
testBatchFuncsFunction · 0.52
TestIpfsDbWithWrongUrlFunction · 0.52
TestIpfsDatabase_HasFunction · 0.52
TestIpfsDatabase_DiscardFunction · 0.52
TestLDBDatabase_IteratorFunction · 0.52
TestLDBTableFuncsFunction · 0.52