Uploaded image for project: 'Scala Couchbase Client'
  1. Scala Couchbase Client
  2. SCBC-13

Provide rowsAs[T] rather than allowing each row to be converted

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.0.0-alpha.3
    • None
    • None
    • None
    • 1

    Description

      Currently have rows() which provides a Seq[QueryRow].  This requires a) converting the underlying QueryChunkRow into a QueryRow - GC pressure - and b) requires the app to handle errors converting each row, which is cumbersome.

      I can't see a good use-case for wanting half the rows as one type and the other half as another.  So Scala will take a leaf from the Java client's book, and just provide rowsAs[T].

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            graham.pople Graham Pople
            graham.pople Graham Pople
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty