Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Johonsoy/SmartStashDB
/ functions
Functions
57 in github.com/Johonsoy/SmartStashDB
⨍
Functions
57
◇
Types & classes
14
↓ 7 callers
Method
Put
(key string, value string, options *WriteOptions)
storage/db.go:41
↓ 6 callers
Method
Get
(key string)
storage/db.go:71
↓ 4 callers
Method
Write
(data []byte)
storage/segmentfile.go:61
↓ 3 callers
Method
Close
()
storage/db.go:24
↓ 3 callers
Method
Size
()
storage/segmentfile.go:53
↓ 3 callers
Method
Sync
()
storage/tinywal.go:153
↓ 3 callers
Method
commit
(w *WriteOptions)
storage/batch.go:86
↓ 3 callers
Method
init
(readOnly bool, sync bool, db *DB)
storage/batch.go:34
↓ 3 callers
Method
maxWriteSize
(size int64)
storage/tinywal.go:160
↓ 3 callers
Function
openSegmentFile
(dir string, ext string, id uint32, localCache *lru.Cache[uint32, []byte])
storage/segmentfile.go:224
↓ 3 callers
Method
reset
()
storage/batch.go:30
↓ 3 callers
Method
unLock
()
storage/batch.go:77
↓ 2 callers
Method
Encode
Encode Serialize LogRecord, header + batchId + keySize + valueSize + key + value /*
storage/logrecord.go:28
↓ 2 callers
Function
NewLogRecord
()
storage/logrecord.go:23
↓ 2 callers
Method
NewSegmentReader
()
storage/segmentfile.go:37
↓ 2 callers
Method
PendingWrites
(data []byte)
storage/tinywal.go:118
↓ 2 callers
Method
appendChunk2Buffer
(buffer *bytes.Buffer, data []byte, cType ChunkType)
storage/segmentfile.go:197
↓ 2 callers
Method
close
()
storage/tinywal.go:28
↓ 2 callers
Method
isFull
(delta int64)
storage/tinywal.go:217
↓ 2 callers
Function
openMemTable
(option memTableOptions)
storage/memtable.go:87
↓ 2 callers
Method
replaceActiveSegmentFile
()
storage/tinywal.go:221
↓ 2 callers
Method
writeBuffer
(bytes []byte, buffer *bytes.Buffer)
storage/segmentfile.go:121
↓ 2 callers
Method
writeBuffer2File
(buffer *bytes.Buffer)
storage/segmentfile.go:189
↓ 1 callers
Method
ClearPendingWrites
()
storage/tinywal.go:236
↓ 1 callers
Method
Close
()
storage/segmentfile.go:45
↓ 1 callers
Method
Decode
(b []byte)
storage/logrecord.go:50
↓ 1 callers
Method
NewReader
()
storage/tinywal.go:167
↓ 1 callers
Method
Next
()
const/Reader.go:13
↓ 1 callers
Function
OpenDB
(options Options)
storage/db.go:103
↓ 1 callers
Function
OpenTinyWAL
(option WalOptions)
storage/tinywal.go:47
↓ 1 callers
Method
WriteAll
()
storage/tinywal.go:126
↓ 1 callers
Method
delete
(key []byte)
storage/batch.go:155
↓ 1 callers
Method
get
(key []byte)
storage/memtable.go:145
↓ 1 callers
Method
getMemTables
()
storage/db.go:82
↓ 1 callers
Method
lock
()
storage/batch.go:42
↓ 1 callers
Function
newBufferPool
()
storage/pool.go:22
↓ 1 callers
Function
openAllMemTables
(options WalOptions)
storage/memtable.go:40
↓ 1 callers
Method
put
(key []byte, value []byte)
storage/batch.go:55
↓ 1 callers
Method
putBatch
(records map[string]*LogRecord, batchId snowflake.ID, options *WriteOptions)
storage/memtable.go:159
↓ 1 callers
Method
readInternal
(index uint32, offset uint32)
storage/segmentfile.go:32
↓ 1 callers
Function
segmentFileName
(dir, ext string, id uint32)
storage/segmentfile.go:220
↓ 1 callers
Function
tempDBDir
()
storage/options.go:35
↓ 1 callers
Method
waitMemTableSpace
()
storage/db.go:56
↓ 1 callers
Method
writePendingWrites
()
storage/batch.go:50
Method
Delete
(key []byte, options *WriteOptions)
storage/db.go:86
Function
ExecDir
()
const/constant.go:24
Method
Get
()
storage/pool.go:12
Method
Get
(key []byte)
storage/batch.go:120
Method
Next
()
storage/SegmentReader.go:14
Method
Put
(buffer *bytes.Buffer)
storage/pool.go:16
Method
Sync
()
storage/segmentfile.go:57
Method
Write
(data []byte)
storage/tinywal.go:185
Method
WriteAll
(writes [][]byte)
storage/segmentfile.go:88
Method
close
()
storage/memtable.go:198
Method
isFull
()
storage/memtable.go:155
Function
main
()
main.go:8
Function
makeBatch
()
storage/batch.go:9