- JSON
-
{ "xtdb/query-engine": { "fn-allow-list": ["foo/bar"] } }
- Clojure
-
{:xtdb/query-engine {:fn-allow-list '[foo/bar]}}
- EDN
-
{:xtdb/query-engine {:fn-allow-list [foo/bar]}
There are a number of different defaults that can be overridden within the XTDB query engine.
{
"xtdb/query-engine": {
"fn-allow-list": ["foo/bar"]
}
}
{:xtdb/query-engine {:fn-allow-list '[foo/bar]}}
{:xtdb/query-engine {:fn-allow-list [foo/bar]}
entity-cache-size
(int, default 32768): query entity cache size.
query-timeout
(int, default 30000): query timeout in milliseconds.
batch-size
(int, default 100): batch size of results.
fn-allow-list
(Predicate Allowlist
, default nil): list of allowed namespaces/functions in predicate functions.
By default, users can invoke any predicate function in their queries.
To restrict what functions a user can invoke, you can specify a :fn-allow-list
of safe functions/namespaces.
We include a set of pure functions from clojure.core
, for convenience.
Allowlists can be a list of the following:
Unqualified symbols/strings, for example, clojure.set
. These are assumed to be namespaces, and all functions within that namespace are allowed.
Fully qualified symbols/strings, for example, clojure.string/capitalize
. These are assumed to be a permitted function.
Can you improve this documentation? These fine people already did:
James Henderson, Steven Deobald & Dan MasonEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close