-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
Hi @Lslightly 👋🏻
A relatively minimal example of how to use this feature is the following. In your query, you define the external predicate and use it (named external predicate foo(string bar, string baz);
from string a, string b
where foo(a, b)
select a, bYou then create a CSV file with rows for the external predicate, with one column for each parameter. Let's call the following hello, world
goodbye, universeNow you can run the query with |
Beta Was this translation helpful? Give feedback.

Hi @Lslightly 👋🏻
A relatively minimal example of how to use this feature is the following. In your query, you define the external predicate and use it (named
foohere):You then create a CSV file with rows for the external predicate, with one column for each parameter. Let's call the following
test.csv:Now you can run the query with
codeql query run path-to-your-query.ql --external=foo=test.csvwherefoois the name of the external predicate andtest.csvthe name of the CSV…