feat: support memo filter for mysql and postgres

This commit is contained in:
johnnyjoy
2025-02-03 17:14:53 +08:00
parent 0f8b7b7fe6
commit e0e735d14d
12 changed files with 670 additions and 87 deletions

View File

@@ -0,0 +1,20 @@
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{},
}
}