mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
21 lines
340 B
Go
21 lines
340 B
Go
package filter
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
type ConvertContext struct {
|
|
Buffer strings.Builder
|
|
Args []any
|
|
// The offset of the next argument in the condition string.
|
|
// Mainly using for PostgreSQL.
|
|
ArgsOffset int
|
|
}
|
|
|
|
func NewConvertContext() *ConvertContext {
|
|
return &ConvertContext{
|
|
Buffer: strings.Builder{},
|
|
Args: []any{},
|
|
}
|
|
}
|