Refactor database methods: simplify SaveEvent signature, enhance logging, and introduce deletion check logic with CheckForDeleted.

This commit is contained in:
2025-09-03 20:59:23 +01:00
parent 5cadf9c933
commit b08e94807b
26 changed files with 293 additions and 151 deletions

5
go.mod
View File

@@ -7,8 +7,10 @@ require (
encoders.orly v0.0.0-00010101000000-000000000000
github.com/adrg/xdg v0.5.3
github.com/coder/websocket v1.8.13
github.com/dgraph-io/badger/v4 v4.8.0
github.com/pkg/profile v1.7.0
go-simpler.org/env v0.12.0
interfaces.orly v0.0.0-00010101000000-000000000000
lol.mleku.dev v1.0.2
protocol.orly v0.0.0-00010101000000-000000000000
utils.orly v0.0.0-00010101000000-000000000000
@@ -18,7 +20,6 @@ require (
crypto.orly v0.0.0-00010101000000-000000000000 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgraph-io/badger/v4 v4.8.0 // indirect
github.com/dgraph-io/ristretto/v2 v2.2.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/fatih/color v1.18.0 // indirect
@@ -43,7 +44,7 @@ require (
golang.org/x/net v0.41.0 // indirect
golang.org/x/sys v0.35.0 // indirect
google.golang.org/protobuf v1.36.6 // indirect
interfaces.orly v0.0.0-00010101000000-000000000000 // indirect
lukechampine.com/frand v1.5.1 // indirect
)
replace (