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

Collections: cbc inconsistent collection/scope with other command line tools

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.6
    • 3.2.7
    • tools
    • None
    • 1

    Description

      bug/improvement?

      cbc-create (presume others) have two collection related arguments --scope and --collection

      Other command line tools and for example N1QL use a different method of specifying a collection (which originated in N1QL) that is an almost 'path' style - scope.collection

      All tools should have a consistent method of refering to a collection for an improved end-user experience

      For example couchbase-cli to create a collection c01 in a scope s01

      couchbase-cli collection-manage -c localhost:9000 -u Administrator -p asdasd --bucket default --create-collection s01.c01

      Default collection can be explicit or implicit, the following commands do the same thing.

      • explicit couchbase-cli collection-manage -c localhost:9000 -u Administrator -p asdasd --bucket default --create-collection _default.collection
      • implicit couchbase-cli collection-manage -c localhost:9000 -u Administrator -p asdasd --bucket default --create-collection .collection

      cbstats

      • explicit cbstats localhost -u Administrator -p asdasd -b bucket collections _default.collection
      • implicit cbstats localhost -u Administrator -p asdasd -b bucket collections .collection

      Also these are equivalent

      • explicit
        • cbstats localhost -u Administrator -p asdasd -b bucket collections _default._default
        • couchbase-cli collection-manage -c localhost -u Administrator -p asdasd --bucket bucket --drop-collection _default._default
      • implicit
        • cbstats localhost -u Administrator -p asdasd -b bucket collections .
        • couchbase-cli collection-manage -c localhost -u Administrator -p asdasd --bucket bucket --drop-collection .
        • couchbase-cli collection-manage -c localhost -u Administrator -p asdasd --bucket bucket --drop-collection _default.

      In summary

      • Scope and collection fully specified and separated with a . scope.collection
      • default scope can be named or implied .collection
      • default collection can be named or implied _default.
      • default collection and scope can be implied .

      Attachments

        Issue Links

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

          Activity

            jwalker Jim Walker created issue -
            avsej Sergey Avseyev made changes -
            Field Original Value New Value
            Status New [ 10003 ] Open [ 1 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.0.7 [ 17120 ]
            avsej Sergey Avseyev made changes -
            Component/s tools [ 13412 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.0.8 [ 17210 ]
            Fix Version/s 3.0.7 [ 17120 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.1.1 [ 17272 ]
            Fix Version/s 3.1.1 [ 17272 ]
            Fix Version/s 3.1.0 [ 17210 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.1.2 [ 17456 ]
            Fix Version/s 3.1.1 [ 17272 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.0 [ 17008 ]
            Fix Version/s 3.1.2 [ 17456 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.1 [ 17502 ]
            Fix Version/s 3.2.0 [ 17008 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.2 [ 17647 ]
            Fix Version/s 3.2.1 [ 17502 ]
            ray.cardillo Ray Cardillo made changes -
            Link This issue relates to CCBC-1482 [ CCBC-1482 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.3 [ 18035 ]
            Fix Version/s 3.2.2 [ 17647 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.4 [ 18084 ]
            Fix Version/s 3.2.4 [ 18084 ]
            Fix Version/s 3.2.3 [ 18035 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.5 [ 18118 ]
            Fix Version/s 3.2.5 [ 18118 ]
            Fix Version/s 3.2.4 [ 18084 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.6 [ 18246 ]
            Fix Version/s 3.2.6 [ 18246 ]
            Fix Version/s 3.2.5 [ 18118 ]
            avsej Sergey Avseyev made changes -
            Fix Version/s 3.2.7 [ 18316 ]
            Fix Version/s 3.2.7 [ 18316 ]
            Fix Version/s 3.2.6 [ 18246 ]

            People

              avsej Sergey Avseyev
              jwalker Jim Walker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty