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

Interface Putter

database/interface.go:11–13  ·  view source on GitHub ↗

Putter wraps the database write operation supported by both batches and regular databases.

Source from the content-addressed store, hash-verified

9
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.
16type Deleter interface {

Callers 8

testDBFuncsFunction · 0.65
testParallelDBFuncsFunction · 0.65
testBatchFuncsFunction · 0.65
TestIpfsDbWithWrongUrlFunction · 0.65
TestIpfsDatabase_HasFunction · 0.65
TestIpfsDatabase_DiscardFunction · 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

no test coverage detected