table all field

This commit is contained in:
2025-10-18 14:43:42 +05:30
parent 325103e8ef
commit 12d6fface6
16 changed files with 149 additions and 137 deletions

18
qry.go
View File

@@ -7,6 +7,7 @@ import (
"context"
"strconv"
"strings"
"sync"
"github.com/jackc/pgx/v5"
)
@@ -34,6 +35,23 @@ type (
}
)
var sbPool = sync.Pool{
New: func() any {
return new(strings.Builder)
},
}
// get string builder from pool
func getSB() *strings.Builder {
return sbPool.Get().(*strings.Builder)
}
// put string builder back to pool
func putSB(sb *strings.Builder) {
sb.Reset()
sbPool.Put(sb)
}
func And(cond ...Conditioner) Conditioner {
return &CondGroup{op: " AND ", cond: cond}
}