Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(exprs []*Expression) (any, error)
Build creates a Notion API filter from expressions. Multiple expressions are combined with AND.
func IsValidCondition ¶
IsValidCondition checks if a condition is recognized.
func NormalizeCondition ¶
NormalizeCondition converts an alias to its canonical form.
Types ¶
type Expression ¶
type Expression struct {
Type string // explicit type override (optional)
Property string
Condition string
Value string
}
Expression represents a parsed where expression.
func Parse ¶
func Parse(expr string) (*Expression, error)
Parse parses a where expression. Formats:
- Property.condition(value)
- Property.condition()
- type:Property.condition(value)
func ParseAll ¶
func ParseAll(exprs []string) ([]*Expression, error)
ParseAll parses multiple where expressions.
Click to show internal directories.
Click to hide internal directories.