Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10839

Java SDK doc: Code sample missing a step

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • None
    • documentation
    • None
    • 2

    Description

      From Mike Carey:
       https://docs.couchbase.com/java-sdk/current/howtos/n1ql-queries-with-sdk.html is where the first two examples, which sound like they will work if concatenated, are missing a key step in the middle.  The imports are “all the imports” and then the example that follows is “a complete example” - but in the middle there is a key step, not shown, that defines and initializes a cluster object - without which the example is incomplete.
       
      !https://slack-imgs.com/?c=1&o1=wi32.he32.si&url=https%3A%2F%2Fdocs.couchbase.com%2F_%2Fimg%2Ffavicon.ico|width=16,height=16!docs.couchbase.com
      [Query | Couchbase Docs|https://docs.couchbase.com/java-sdk/current/howtos/n1ql-queries-with-sdk.html]
      You can query for documents in Couchbase using the https://www.couchbase.com/products/n1ql[SQL++] (formerly N1QL) query language, a language based on SQL, but designed for structured and flexible JSON documents.

      Attachments

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

        Activity

          People

            tom.rosewell Tom Rosewell (Inactive)
            beth.favini Beth Favini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty