Compare commits

..

4 Commits

Author SHA1 Message Date
54b0d6701d v0.0.539
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m49s
2024-10-27 02:21:35 +02:00
fc2657179b v0.0.538
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m7s
2024-10-27 02:18:45 +02:00
d4894e31fe Merge branch 'cursortoken-paginated'
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
2024-10-27 02:18:25 +02:00
0ddfaf666b v0.0.537 fix goext error print always showing error-type of highest-level error
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m12s
2024-10-26 23:38:13 +02:00
5 changed files with 13 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import (
type CursorToken interface {
Token() string
IsEnd() bool
}
type Mode string

View File

@@ -111,6 +111,10 @@ func (c CTKeySort) Token() string {
return "tok_" + base32.StdEncoding.EncodeToString(body)
}
func (c CTKeySort) IsEnd() bool {
return c.Mode == CTMEnd
}
func (c CTKeySort) valuePrimaryObjectId() (primitive.ObjectID, bool) {
if oid, err := primitive.ObjectIDFromHex(c.ValuePrimary); err == nil {
return oid, true

View File

@@ -31,3 +31,7 @@ func (c CTPaginated) Token() string {
return "$" + strconv.Itoa(c.Page)
}
func (c CTPaginated) IsEnd() bool {
return c.Mode == CTMEnd
}

View File

@@ -160,8 +160,8 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string {
for curr := ee; curr != nil; curr = curr.OriginalError {
indent += " "
etype := ee.Type.Key
if ee.Type == TypeWrap {
etype := curr.Type.Key
if curr.Type == TypeWrap {
etype = "~"
}

View File

@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.536"
const GoextVersion = "0.0.539"
const GoextVersionTimestamp = "2024-10-22T09:57:06+0200"
const GoextVersionTimestamp = "2024-10-27T02:21:35+0200"