Skip to content

:as => :column #261

@snarglebritchet

Description

@snarglebritchet

Please add a new :as type called :column which

  1. yields each row as a single item, which may be nil, or returns all items as a flat array
  2. complains if the number of returned columns is >1

It's equivalent to :as => :array and then using row[0], but avoids building garbage arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions