sql

All things SQL and JDBC...
Ramon Rios 2020-02-14T13:56:23.198600Z

Hello everyone. I'm having a challenge of migrate a MySQL table for a neo4j database. I looking for some libraries and other stuff, but i would like to know if someone has any background on neo4j and clojure

gklijs 2020-02-14T16:38:59.198700Z

Getting there.. so far setup a protocal for graph-like data structures, which for now is only implemented for in-memory. Ideally if it suppoted MySQL and neo4j it could be used to do migrations. But it's no where there yet, and also don't have time for it in the near future.

Ramon Rios 2020-02-14T18:08:54.199700Z

Folks, i'm using next library for get data from mysql.

Ramon Rios 2020-02-14T18:10:20.200900Z

i do not got it right on how put the result-set for get as-unqualified-lower-maps

Ramon Rios 2020-02-14T18:11:02.201700Z

I read the documentation but i do not got it how could i do my select getting the keys.

Ramon Rios 2020-02-14T18:19:45.202Z

Found the problem

Ramon Rios 2020-02-14T18:20:15.202600Z

i was not putting {:builder-fn rs/as-unqualified-lower-maps} on the map, after reading a lot of the docs

seancorfield 2020-02-14T19:45:40.203500Z

I would strongly encourage you to work with qualified keys in hash maps by default, unless you have a critical reason not to. That's why qualified hash maps are the default.

Ramon Rios 2020-02-15T12:32:44.207Z

On my case, i'll only do a select in one table for do a ETL. And with unqualified keys the data was ready to be added into the new db, wich is neo4j. But thank you anyway for your recommendation.

seancorfield 2020-02-15T19:30:45.207200Z

In general, when you work with qualified keys and pass them into any persistence library, it will strip the namespace portion off anyway (because it just calls name on the keywords) so it's safe to work with them -- and it's easier to work with Spec (and a little more descriptive overall).

seancorfield 2020-02-14T19:48:33.205300Z

@ramon.rios The Getting Started guide for next.jdbc has examples of the :builder-fn: https://cljdoc.org/d/seancorfield/next.jdbc/1.0.13/doc/getting-started#options--result-set-builders -- which I would expect everyone to read when they are... getting started... with next.jdbc 🙂

Ramon Rios 2020-02-14T20:02:32.206900Z

Definitely. I need to remember sometimes to read something in my second language not so fast 😅