Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-925

N1QL: Provide helper to build "FOR...IN...WHEN" update clause

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.2.6
    • 2.2.5
    • N1QL
    • None

    Description

      When using the DSL for updates, the set/unset take an Expression as the update-for-clause. This clause, in the form of FOR variable IN path WHEN condition END, is not trivial but not complex enough that it warrants reworking of the global DSL.

      A helper class could be introduced to guide users in producing the adequate Expression. Usage would be like:

      UpdateForClause.forIn("variable", "path").when(x("condition"))
      

      Attachments

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

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            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