Custom transcoder for n1ql in PHP


#1

Hello,

I’m aware that there is no way to use a custom transcoder for n1ql in PHP SDK at the moment. Is there a plan to support it in the future?

I think something like this would be nice to have.

$query = CouchbaseN1qlQuery::fromString("select * from ...");
$query->transcodeWith(function($result) {
    // do something on $result
    return $result; 
});

$results = $bucket->query($query);

#2

Right now we don’t have such plans, but I will add it to backlog, thank you. What do you want to do in the transcoder?