Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-694

Query interface for sdk3 seems incomplete

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta.3
    • None
    • None
    • 1
    • SDK1: GA and Priority List

    Description

      As I understand it, the 'SDK3' way to query would be something like:

      cluster.query('SELECT * FROM `default`') # which works fine
      # or
      cluster.query('SELECT * FROM `default` WHERE foo LIKE $email', email='%foo%'). # nope
      # or
      cluster.query('SELECT * FROM `default` WHERE foo LIKE $1', '%foo%') # nope
      

      But the older way, using a N1QLQuery object, works fine:

      cluster.query(N1QLQuery('SELECT * FROM `default` WHERE email LIKE $email', email='%king%'))
      

      A couple questions arise:

      • do we really want to still support a N1QLQuery object?
      • should we support something like the 2 usages above?

      Of course it is entirely possible I'm misunderstanding the code (or the sdk3 RFCs).   

      Attachments

        For Gerrit Dashboard: PYCBC-694
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          People

            david.kelly David Kelly
            david.kelly David Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty