Re:Clojure Turns 15 panel discussion video
by zx8080 on Monday February 13, 2023 @10:12PM
(#34784763)
What is the idea behind immutable variant of a ResultSet? Since it maintains a database cursor, does it make sense to have it immutable?
> A ResultSet object maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row [0]
0 - https://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet...
Re:Clojure Turns 15 panel discussion video
by seancorfield on Tuesday February 14, 2023 @01:15AM
(#34786071)
If you're a Clojure developer and you're using the next.jdbc library you don't need to ask that question :)
I've only needed to dig into that occasionally for a handful of specific situations (for example, in next.jdbc, where I create a hash map like abstraction over the (mutable) ResultSet object from Java -- to paper over some nasty interop issues).