News for hackers. Stuff that matters.
Re:We Can Do Better Than SQL by mattmanser on Tuesday August 11, 2020 @07:23PM (#24127107)
Most SQL libraries handle this all for you? You really don't have to do any of that.

It's perfectly fine to just 'know' that the data is going to be an int and just do `var id = rs.getInt(id")`.

I'm on my phone so it's too fiddly to write my own brief example, but if you get rid of the silly comments in this you'll see you can do it all in a few lines, just very boilerplate lines:

https://thedeveloperblog.com/sqlconnection

There are no comments on this comment yet.