Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDSLQuery ¶
BuildDSLQuery validates a DSL query against the app registry and returns a core query builder. Includes are validated; callers can resolve eager loading separately until relationship joins are fully generated.
Types ¶
type DSLQuery ¶
type DSLQuery struct {
Entity string
Filters []DSLFilter
Includes []string
Orders []DSLOrder
Limit int
After string
}
DSLQuery is the parsed representation of a GoFastr query DSL string.
func ParseDSL ¶
ParseDSL parses strings like:
Post.where(status="published").include(author).order(created_at DESC).limit(10)
Results are cached by input string. The cache is bounded to 256 entries; when full, a single randomly-chosen entry is evicted (Go map iteration is randomised, so the first key returned by `range` is effectively random — this is not LRU).
Click to show internal directories.
Click to hide internal directories.