We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to create a Rule that forces some vars to be bound. In this case, ?name:
?name
(d/q '[:find ?greeting :in $ % :where (say-hello "kipz" ?greeting)] db '[[(say-hello [?name] ?result) [(ground "hello, ") ?greeting] [(str ?greeting ?name) ?result]]])
But this unexpectedly fails warning of unbound vars:
; Execution error (ExceptionInfo) at datalevin.query/check-bound (query.cljc:751). ; Insufficient bindings: #{?name__auto__9} not bound in [(str ?greeting__auto__9 ?name__auto__9) ?greeting]
Without the [..bound vars..] notation, all works just fine:
[..bound vars..]
(d/q '[:find ?greeting :in $ % :where (say-hello "kipz" ?greeting)] db '[[(say-hello ?name ?result) [(ground "hello, ") ?greeting] [(str ?greeting ?name) ?result]]])
->>
#{["hello, kipz"]}
The text was updated successfully, but these errors were encountered:
Have you tried this in datascript?
Sorry, something went wrong.
Tried just now, and same result in datascript.
Just found this: tonsky/datascript#441
Sorry, I didn't realisze that Datascript provided the Datalog parser/engine.
No branches or pull requests
I'm trying to create a Rule that forces some vars to be bound. In this case,
?name
:But this unexpectedly fails warning of unbound vars:
Without the
[..bound vars..]
notation, all works just fine:->>
#{["hello, kipz"]}
The text was updated successfully, but these errors were encountered: