Skip to content

Commit

Permalink
rename run_query -> query_and_trace for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
joewatt95 committed May 20, 2024
1 parent 85bc17f commit 3bb0257
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/resources/swipl/prelude.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

log_stack_frame(StackFrame).

run_query(StackTrace, Query) =>
query_and_trace(StackTrace, Query) =>
setup_call_cleanup(
asserta(stack_trace(StackTrace)),

Expand Down
2 changes: 1 addition & 1 deletion src/l4_lp/swipl/js/wasm_query.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
(partial jsi/call stack-trace :push))))
query-result
(swipl-query-once swipl
(str "run_query(StackTrace," query ")")
(str "query_and_trace(StackTrace," query ")")
#js {:StackTrace stack-trace-obj})]
{:query query
:bindings (-> query-result swipl-js->clj/swipl-query-result->bindings)
Expand Down
2 changes: 1 addition & 1 deletion src/l4_lp_py/swipl/_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def _query_and_trace(prolog_program_and_queries):
stack_trace = _StackTrace()

janus.query_once(
f'run_query(StackTrace, {query})',
f'query_and_trace(StackTrace, {query})',
{'StackTrace': stack_trace}
)

Expand Down

0 comments on commit 3bb0257

Please sign in to comment.