You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New method that's basically db.scalar but for multiple lines and columns. Maybe something like db.query_all_with_name("select * from my_table") (or db.scalars?) and the output would be the same as db.scalar but with a name, like {"age" => PG::Int(3), "birth_date" => PG::Timestamp(2013), ... }
Might be nice for prototyping, unknown column names etc. Just an idea. Drawback being that it kind of defies type safety...
The text was updated successfully, but these errors were encountered:
Feature request:
New method that's basically db.scalar but for multiple lines and columns. Maybe something like
db.query_all_with_name("select * from my_table")
(ordb.scalars
?) and the output would be the same asdb.scalar
but with a name, like{"age" => PG::Int(3), "birth_date" => PG::Timestamp(2013), ... }
Might be nice for prototyping, unknown column names etc. Just an idea. Drawback being that it kind of defies type safety...
The text was updated successfully, but these errors were encountered: