Documentation
¶
Overview ¶
Package exprlang is bisql's built-in expression evaluator for directive expressions (the e in /*%if e*/, the bind expression in /* e */, and so on).
It is a thin wrapper around github.com/expr-lang/expr, the de-facto Go expression language: safe, bytecode-compiled, and rich (property/method access, comparisons, boolean logic, nil checks, the "in" operator, len/collection helpers, optional chaining a?.b, nil-coalescing ??). Compiled programs are cached per expression string.
Note on syntax vs. Komapper: expressions live inside SQL comments and are never sent to the database, so their syntax has no bearing on the 2-way (runnable-as-is) property. The one visible difference from Komapper's Kotlin-flavored language is that the null literal is written "nil" (expr-lang's spelling), not "null". Callers who need a different expression dialect can plug a custom evaluator via bisql.WithEvaluator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.