WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

query_all_hashes #166

@rdp

Description

@rdp

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions