onyx

FYI: alternative Onyx :onyx: chat is at <https://gitter.im/onyx-platform/onyx> ; log can be found at <https://clojurians-log.clojureverse.org/onyx/index.html>
niamu 2018-01-24T16:58:59.000118Z

I don’t mean to be a pest, but I think this pull request is pretty solid at this point. If anyone has time to look at it, let me know what else needs to be addressed: https://github.com/onyx-platform/onyx-sql/pull/31

michaeldrogalis 2018-01-24T17:04:43.000574Z

Thanks for the ping @niamu, I'll give it a final review now.

niamu 2018-01-24T17:05:08.000277Z

On an unrelated note, when defining the bucket to use for :onyx.peer/storage.s3.bucket, does it need to be created already or will it be created on demand?

michaeldrogalis 2018-01-24T17:05:13.000097Z

Can you change the PR to target master instead of 0.12.x?

niamu 2018-01-24T17:05:19.000702Z

will do

michaeldrogalis 2018-01-24T17:05:24.000164Z

Already created IIRC

michaeldrogalis 2018-01-24T17:06:56.000774Z

Is L21 of myself.clj a repl left over?

niamu 2018-01-24T17:07:55.000656Z

I don’t see that file in the list…

niamu 2018-01-24T17:08:18.000170Z

oh, mysql.clj

michaeldrogalis 2018-01-24T17:08:26.000505Z

Doh - sorry. Still coffee'ing

niamu 2018-01-24T17:09:01.000674Z

No problem. No, that needs to be there to execute and modify the registered clauses in HoneySQL that it supports.

michaeldrogalis 2018-01-24T17:09:53.000816Z

What is the significance of the 225?

niamu 2018-01-24T17:11:43.000080Z

It’s the order number of how to construct parts of the query string. In this case it will be inserted towards the end of the query. I used honeysql-postgres as a reference for the number: https://github.com/nilenso/honeysql-postgres/blob/932ca5113568407c3c9df480cfd0949fddc8e4ab/src/honeysql_postgres/format.clj#L19

niamu 2018-01-24T17:12:23.000056Z

There didn’t appear to be an equivalent MySQL library for HoneySQL, hence the reason for that new namespace in the pull request.

michaeldrogalis 2018-01-24T17:12:59.000050Z

Cool -- can you tuck that constant into a def? Would be helpful to know why its important is all

michaeldrogalis 2018-01-24T17:13:03.000183Z

Other than thats looks great to me

niamu 2018-01-24T17:13:45.000608Z

Sure, I’ll make that change and include a link to that reference in the comment for future reviewers.

michaeldrogalis 2018-01-24T17:14:14.000169Z

Excellent, thanks so much, and thanks for the contribution!

niamu 2018-01-24T17:23:27.000061Z

Alright. Updated with a def and a comment to explain what that number does.

michaeldrogalis 2018-01-24T18:16:52.000285Z

@niamu Merged, thanks! CI will cut a release now, stay tuned.

michaeldrogalis 2018-01-24T18:21:27.000079Z

@niamu Version 0.12.5.1-20180124.182029-2 has your patch

niamu 2018-01-24T18:21:35.000143Z

Thanks so much!

michaeldrogalis 2018-01-24T18:21:41.000516Z

No problem!

niamu 2018-01-24T18:31:57.000572Z

Now that it’s been merged, this issue can be closed as well: https://github.com/onyx-platform/onyx-sql/issues/17

michaeldrogalis 2018-01-24T18:39:12.000350Z

Yep, closed. Thanks for that!