Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-78

Improved Sample Code for "Simple Example"

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • 1.0
    • library
    • Security Level: Public
    • all platforms

    Description

      Hi,

      I received a variety of content corrections from a customer for the C SDK. I made all possible, however some require changes in the sample code the SDK Team provides. The existing sample code is here:

      http://www.couchbase.com/docs/couchbase-sdk-c-1.0/simple_example.html

      The customer requests:

      • The tutorial example bails from callbacks with exit(), rather than
        passing control back to main (after setting a global flag, for example,
        or one passed in via the cookie, etc.).
      • The tutorial should also show use of libcouchbase_remove() and what to
        expect from libcouchbase_mget() afterwards (the latter is in the Python
        docs, but not the C docs).
      • The tutorial should use libcouchbase_destroy().
      • Some mention of whether a disconnect is needed or not would be
        appropriate.

      Let me know if you are able to demonstrate use of these other methods in the sample code and send the code. I will add the new sample and document.

      Also let me know if a C client needs to be destroyed and if so how.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            kzeller kzeller
            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