by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
GÁBOR Áron Zsolt
@ashnur
no wonder it sucks :D
@metasoarous when you know the options and the tradeoffs for each option, it's not that terrible, but getting to that point in time and space is very frustrating, requires lots of trial and error because other people can't really help unless you are very lucky
Brian Marco
@bamarco
@ashnur the checkouts folder is my preferred method for open-source projects I've made a local change to. You just clone the repo into your checkouts folder (or with a symlink) and then make changes and put that version in your lein dependencies. If it's your own project that isn't in maven then use the src-paths method.
GÁBOR Áron Zsolt
@ashnur
i am going to use datascript again from javascript
i would probably use cljs but everyone else on the project would freak out, so can't do it (yet >:] )
the question is, what's the best way to do it. pls if you know such projects where they did stuff like this, share it.
GÁBOR Áron Zsolt
@ashnur
@typeetfunc you here? :)
Thinh P. Tran
@ThinhPTran
I want to extract datoms from datascript to persist it as eva table in a sql database. Could you please show me how I can do that. Is there any function that I can extract it from datascript. Many thanks.
Thinh P. Tran
@ThinhPTran
image.png
Here is my temporary solution. Please suggest me if you have a better solution for it.
Many thanks.
Christopher Small
@metasoarous
@ThinhPTran You can actually just iterate over @conn datoms directly; You don't need to use (.eavt) or -seq etc. Also, you don't need reduce there; I'd use map.
More importantly what's your goal? If you just want persistence, I'd take a look at datascript-transit or datsync, depending on your needs.
Final word of warning; Be careful about serializing eids; You can get into trouble that way if you're not careful.
Thinh P. Tran
@ThinhPTran
@metasoarous Many thanks. I would like to persist, clone it and sync it.
Brian Marco
@bamarco
@ThinhPTran I'm currently trying to do this in datsync, but only to file (for small databases that fit in memory). datsync can already do the sync if you're using datomic. The refactoring I'm doing should make it easier to add on an sql extension to datsync.
Thinh P. Tran
@ThinhPTran
@bamarco Many thanks. I am looking at that too.
Rumaysa Alvina
@aryabhatiya
is there any example that combines rum + datascript + datomic very simple way
Denis Krivosheev
@denistakeda
Hi there. I've just released a library for connect DataScript and re-frame https://github.com/denistakeda/data-frame
Is there any chance adding the link to it to the DataScript documentation? @tonsky
Mike Pence
@mikepence
hello all. feeling kind of dumb here. how do you get a db out of a conn?
Christopher Small
@metasoarous
It's just an atom, so use @conn (or (deref conn))
Mike Pence
@mikepence
thanks Christopher
then my eid looks like #{[1]})
how do I deref that?
Christopher Small
@metasoarous
Your eid?
What eid?
Oh... the result of some query?
That's a set (the #{})
Mike Pence
@mikepence
yeah, sorry, that lacked context
Christopher Small
@metasoarous
And it has one vector in it [1]
Mike Pence
@mikepence
cool, I just ffirst -ed it
Christopher Small
@metasoarous
If ou just want one single value do :find ?e .
That gets the first value
Mike Pence
@mikepence
nice, thankjs
Christopher Small
@metasoarous
Sure
Mike Pence
@mikepence
I am so bummed that this clojure project is getting shelved.
Christopher Small
@metasoarous
what's that?
Mike Pence
@mikepence
I have been working in clojure these last few months again, professionally, and that ends tomorrow.
Christopher Small
@metasoarous
Oh... bummer
Sorry to hear that
Mike Pence
@mikepence
you are doing great stuff in this space. I hope you keep it up.
Christopher Small
@metasoarous
Cheers! Thank you!
Brian Marco
@bamarco
@tonsky @metasoarous @alexandergunnarson I added a pr for tx-middleware tonsky/datascript#234 which would help address some of these schema issues, but i think would allow some flexibility for solving some other open problems in datascript that have performance trade offs. If you think this is a good direction @tonsky there is still some more polish to be done here.
GÁBOR Áron Zsolt
@ashnur
do we have a visual editor for datascript? :)
i know there were talks about it, but i don't know what come of those...
Nikita Prokopov
@tonsky
@ashnur none that I know of
Christopher Small
@metasoarous
Hi @tonsky. Would you mind having a look at the PR @bamarco linked to above? It would be helpful for us to have a litmus as to whether this middleware idea is something you'd consider or not. We'd love to see it in datascript if you and others see value in it, and don't mind biding time for it to be fully vetted. But if you're disinclined, we'd like to get the ball rolling on figuring out how we work this into datsync/datsys.
Nikita Prokopov
@tonsky
THIS CHANNEL IS CLOSED IN FAVOUR OF SLACK. Grab invite here http://clojurians.net/, join https://clojurians.slack.com, look for #datascript channel. PLEASE DON’T ASK QUESTIONS HERE.
matrixbot
@matrixbot
bendlas 33333333333333`
Dave Orme
@coconutpalm
bummer