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

Help prevent connection leaks and adoption of antipatterns by querying repo directly #110

Merged
merged 10 commits into from
Oct 19, 2017

Conversation

RickMoynihan
Copy link
Member

Fixes #109

The implication of this is that declare-pipeline and the
`lein-grafter` plugin will be unsupported in the OSS grafter from
0.9.x.

This code has moved into Swirrls internal grafter-server project.
From 0.9.0 onwards grafter/grafter will include only RDF processing
code.

Code that depends on grafter.tabular can include a new legacy
dependency which can be found at:

https://github.com/Swirrl/grafter.tabular

Or includable with the clojars coordinates:

[grafter/grafter.tabular "0.9.0"] ;; (check version)
now we no longer use lein-repack and have split grafter.tabular into
its own repo
Clients who receive this exception should adopt a pattern migrating
code from this:

(let [repo (repo)]
  (query repo "select * where { ?s ?p ?o .} limit 10")
  )

To something more like this:

(let [repo (repo)]
  (with-open [conn (->connection repo)]
    (doall (query conn "select * where { ?s ?p ?o . } limit 10"))))

We plan to add more eager APIs to assist with this in the future.
@RickMoynihan RickMoynihan merged commit 5bec3fd into master Oct 19, 2017
@scottlowe scottlowe deleted the 0.10.x-SNAPSHOT_unextend-repo branch November 24, 2022 15:14
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

Successfully merging this pull request may close these issues.

1 participant