Skip to content

Commit

Permalink
Update MIGRATION_FROM_3_x.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz <[email protected]>
  • Loading branch information
avsej and Matt-Woz authored Apr 9, 2024
1 parent 2cf44b7 commit a53121f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MIGRATION_FROM_3_x.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ So let us point out immediate differences:

## Transcoder API

SDKv3 used non-standard way of specifying encoder and decoder for the document objects for KV API.
This API was inherited from SDKv2, and basically the Developer needed to specify only decoder, or
encoder function in the options. SDKv4 fixes this and instead defines `\Couchbase\Transcoder`
interface which encapsulates all logic. In addition it provides four implementations of it
SDKv3 used a non-standard way of specifying an encoder and decoder for the document objects for the KV API.
This API was inherited from SDKv2, where the developer needed to specify a decoder or
encoder function in the options. SDKv4 fixes this and instead defines the `\Couchbase\Transcoder`
interface which encapsulates all the logic. Additionally, it provides four implementations of it
and uses `\Couchbase\JsonTranscoder` by default.

Lets say we want to read/write documents without any conversion, just as a binary streams. To do so,
Expand Down

0 comments on commit a53121f

Please sign in to comment.