Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.11.0
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      This will be a preliminary interface, and would allow users to circumvent (either for interoperability or for bugs in the client) "hard coded" encoding rules (pun intended)

      The constructor for the Connection class should accept a 'codec' which is an object providing the
      following functions:

      To encode:
      encode_key(self, key) => key_as_bytearray

      To decode:
      decode_key(self, bytearray) => whatever

      To encode a value; should return the bytearray and flags to use
      encode_value(self, value) => (bytearray, flags)

      To decode a value, function should look at flags and return a bytearray
      possibly examining flags.

      decode_value(self, value, flags) => bytearray

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+PYCBC-92=message:PYCBC-92

        Activity

        Show
        mnunberg Mark Nunberg added a comment - http://review.couchbase.org/#/c/25948/

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes