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
    • Resolution: Fixed
    • Major
    • 3.0.0-beta.3
    • None
    • 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

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

        Activity

          People

            david.kelly David Kelly (Inactive)
            david.kelly David Kelly (Inactive)
            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