diff --git a/doc/getting-started.md b/doc/getting-started.md index 98307a7..a4f155d 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -127,6 +127,17 @@ Some examples: `:inline` is an example of "special syntax" and it renders its (single) argument as part of the SQL string generated by `format`. +Another form of special syntax that is treated as function calls +is keywords or symbols that begin with `%`. Such keywords (or symbols) +are split at `.` and turned into function calls: + +```clojure +%now ;=> NOW() +%count.* ;=> COUNT(*) +%max.foo ;=> MAX(foo) +%f.a.b ;=> F(a,b) +``` + ## SQL Parameters As indicated in the preceding sections, values found in the DSL data structure