aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-02-07 18:50:44 -0300
committerEuAndreh <eu@euandre.org>2025-02-07 18:50:44 -0300
commit4827c67c7795a5da4e785279ce0a016ad1cfd27e (patch)
treefd02c0ad6607b99c5a14df15f533b1453f527acc /src
parentsrc/dedo.go: Inline code of db.begin() (diff)
downloaddedo-4827c67c7795a5da4e785279ce0a016ad1cfd27e.tar.gz
dedo-4827c67c7795a5da4e785279ce0a016ad1cfd27e.tar.xz
src/dedo.go: Comment implementation of InMemory
Diffstat (limited to '')
-rw-r--r--src/dedo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dedo.go b/src/dedo.go
index ef626ee..baf0d37 100644
--- a/src/dedo.go
+++ b/src/dedo.go
@@ -1658,6 +1658,7 @@ func initDB(db *DB, size int64) error {
return nil
}
+/*
func (tx *inMemoryTx) Bucket(name []byte) *Bucket {
bucket, _ := tx.db.Get(name)
return bucket
@@ -1757,6 +1758,7 @@ func (m *InMemory) View(func(SnapshotI) error) error {
func OpenMemory() DedoI {
return &InMemory{pds.NewMap[[]byte, *Bucket](nil)}
}
+*/
/// Open creates and opens a database at the given path. If the file does not
/// exist then it will be created automatically.