sql

All things SQL and JDBC...
schmee 2020-09-20T10:53:39.000800Z

what do you think about adding the note about this in the Getting Started doc to the with-options docs? I was just about to ask this very question and I happened to see that youโ€™ve already answered it ๐Ÿ˜„

seancorfield 2020-09-20T18:21:34.001Z

@schmee It's explained in the Getting Started doc already: > Note: Because get-datasource and get-connection return plain JDBC objects (`javax.sql.DataSource` and java.sql.Connection respectively), next.jdbc/with-options cannot flow options across those calls, so if you are explicitly managing connections or transactions as above, you would need to have local bindings for the wrapped versions:

seancorfield 2020-09-20T18:23:59.001500Z

I guess I can add a note after the first mention to go read that section below...

schmee 2020-09-20T19:03:41.001700Z

@seancorfield yes, Iโ€™ve seen the note, what I mean is adding that โ€œnoteโ€ part to the with-options docstring :thumbsup:

schmee 2020-09-20T19:03:57.001900Z

the note explained it perfectly, I just couldnโ€™t find it ๐Ÿ˜„

seancorfield 2020-09-20T19:09:27.002100Z

Ah, OK. I added this note to Getting Started to link the two sets of examples https://github.com/seancorfield/next-jdbc/commit/ef96e04cb6bc4aa5a187f2f2ac5d21bef646d216

seancorfield 2020-09-20T19:09:59.002300Z

I'll take a look at the docstring and see what I do. I do sort of assume folks read the whole the Getting Started guide before they, you know, get started ๐Ÿ™‚

schmee 2020-09-20T19:11:44.002500Z

haha, that is certainly a fair assumption, just making a suggestion on behalf of all us speedreaders out there ๐Ÿ˜ :thumbsup:

seancorfield 2020-09-20T19:18:10.002800Z

OK, updated the dosctring https://github.com/seancorfield/next-jdbc/commit/0142b25dc6f980c381106dfa5bed1948b35e47b0

schmee 2020-09-20T19:18:51.003Z

sweet, thank you! ๐Ÿ™‚