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

View File

@@ -26,6 +26,7 @@ require (
replace (
acl.orly => ../acl
crypto.orly => ../crypto
database.orly => ../database
encoders.orly => ../encoders
interfaces.orly => ../interfaces
next.orly.dev => ../../

View File

@@ -3,8 +3,6 @@ package reason
import (
"bytes"
"fmt"
"lol.mleku.dev/log"
)
// R is the machine-readable prefix before the colon in an OK or CLOSED envelope message.
@@ -38,7 +36,6 @@ func (r R) IsPrefix(reason []byte) bool {
// F allows creation of a full R text with a printf style format.
func (r R) F(format string, params ...any) (o []byte) {
log.D.F(format, params...)
return Msg(r, format, params...)
}