Skip to content
New issue

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

Special case ident for Datomic where clauses #81

Open
devth opened this issue Mar 16, 2017 · 0 comments
Open

Special case ident for Datomic where clauses #81

devth opened this issue Mar 16, 2017 · 0 comments

Comments

@devth
Copy link

devth commented Mar 16, 2017

Any thoughts on how we could support a special case ident for Datomic's :where?

(d/q '[:find ?team .
       :in $ ?user-id
       :where [?team :team/users ?user-id]
              [?team :team/active? true]]
     db user-id)

Notice how [?team :team/active? true]] is lined up with the clause above it. The default indent results in:

(d/q '[:find ?team .
       :in $ ?user-id
       :where [?team :team/users ?user-id]
       [?team :team/active? true]]
     db user-id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant