Comments (7)
The examples are not up-to-date with changes from a few months ago.
We are now exclusively using core.async channels for communication between the server and Clojure.
I'll create an issue and fix the examples soon.
from clj-3df.
Thanks! Could you provide minimal instructions to get started with a pub/sub so I can play around a bit over the weekend? :)
from clj-3df.
Yeah sure!
We should update the readme too and provide some more instructions :)
When you have a look here in the core.cljc
file you see an example:
https://github.com/comnik/clj-3df/blob/9d0352b49c2618d23641d8692779c4e6e924f9e9/src/clj_3df/core.cljc#L291-L320
from clj-3df.
If you use create-publication
the conn
map will contain a :pub
key that has an async-pub which dispatches on the name of the registered query. In this case it would be "loans".
create-debug-publication
will pipe every output that the server send also to the repl.
Hope that helps
from clj-3df.
The examples should work now.
For the example rga
you need to use a different branch from the server.
ldbc
requires you to have the data...
from clj-3df.
Hey yeah sorry for that, the examples are somewhat internal still. We will try and get some more usable ones out there. Lots of things are happening on the back-end right now, hard to keep up :)
(Keeping this open for now, until we have some more examples / @theronic confirms he's somewhat good to go)
from clj-3df.
... am running a differential dataflow server. ...
Just wanted to clarify that the running server needs to be the declarative dataflow server: https://github.com/comnik/declarative-dataflow/tree/v0.1.0#build--run
Also, the code snippet posted here is slightly out of date; looks like create-conn
was renamed to create-conn!
(among a few other small changes). https://github.com/comnik/clj-3df/blob/master/src/clj_3df/core.cljc#L292 appears to be up to date.
from clj-3df.
Related Issues (20)
- Multiple aggregations HOT 3
- FnExpr symbols and implicit clause order HOT 1
- Constant bindings HOT 1
- 3DF DB should be protocol for encoding queries
- Add support for transforms in the find-spec itself
- Add support for aggregations in clauses
- Add CloseInput support
- Support for pull query HOT 2
- Pagination HOT 1
- `min` and `max` don't work as expected HOT 1
- Update examples HOT 2
- Error handling HOT 1
- default clauses for datalog HOT 5
- exec! is not batching commands HOT 1
- Cljs: clj_3df.compiler.trace_bindings is undefined HOT 2
- UUID serialization for entity id's HOT 1
- Roadmap? HOT 4
- retraction of an inexistent value of cardinality/one causes server panic HOT 1
- Datahike support? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-3df.