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

Documentation SDK PHP for removing buckets

    XMLWordPrintable

Details

    Description

      In the documentation for removing a Bucket, you have stated:

      $cluster->removeBucket('hello');

      That is wrong. it should be similar to createBucket.

      $manager = $cluster->manager('Administrator', 'password');
      $manager->removeBucket('hello');

      Also, it doesn't explain how the error handling is working. Personally, in my code, I have done something similar:
      if($result = $cluster->createBucket('hello'))

      { //error handling or throw Exception }

      Reporter: fremen507
      E-mail: jpmorin@gmail.com

      Attachments

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

        Activity

          People

            richard.smedley Richard Smedley
            docsite-collector Docs Site Collector
            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