I'm not versed working with DBs, but everytime I'm getting data from the DB with res = con.exec "SELECT * FROM #{table}" and then res.values I get all the values as if they were strings, for example:
[["1", "2017-01-14", "f"]]
Can I get Dates as Dates, integers as integers, etc.? or do I have to parse everything?
EDIT: I'm using Ruby without Rails.
pgdirectly?