Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query_all_hashes #166

Open
rdp opened this issue Apr 11, 2022 · 0 comments
Open

query_all_hashes #166

rdp opened this issue Apr 11, 2022 · 0 comments

Comments

@rdp
Copy link

rdp commented Apr 11, 2022

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") (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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant