mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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{},
|
|
}
|
|
}
|