Fork me on GitHub
#datomic
<
2017-02-17
>
genRaiy10:02:47

looking to parse / edit datomic schemas .. does anybody know if there has been some previous work on this? ( maybe my google-fu is off but web search has not helped! )

nottmey12:02:49

@raymcdermott please specify, do you want to alter your schema? parsing the edn schema format? what’s the case?

genRaiy12:02:35

@nottmey parsing the edn schema - use case is to make an editor that will assist the generation of correct datomic schemas

nottmey12:02:07

Since the schema that you are transacting is essentially in a [{…} …] edn format, you can use standard edn tools. If your editor is written in ClojureScript, you can for example use https://clojuredocs.org/clojure.edn/read-string for parsing and https://clojuredocs.org/clojure.pprint/pprint for displaying the schema.

nottmey12:02:37

There may already be specs (https://clojure.org/about/spec) for validation, or you write your own.

stijn13:02:10

@raymcdermott Something like https://github.com/shaunxcode/datomicism ? It is apparently written in Coffeescript though...

genRaiy13:02:59

@nottmey I know you're trying to be helpful and I know the tech you describe - I wanted to know if there actually are specs or if there is a BNF for use in CLJ/S. Don't know is also a good answer ;-)

genRaiy13:02:00

@stijn I don't like that editor but yes the basic material to parse the BNF of the schema (not just the EDN) is what I was looking for before I start working on it ... happy to reinvent the wheel or at least put a new type of tire on it but wondered if I also have to reinvent the rim, hub and spokes too

nottmey13:02:58

@raymcdermott well, at least we now know what you are searching for. 🙂

uwo22:02:01

I’ve deployed my peer and transactor, however when my peer attempts to connect to the transactor I get this error. Any ideas?

org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.UnknownHostException: datomic: Temporary failure in name resolution: datomic:4335" [90067-171]

uwo22:02:03

I think i’ve resolved this