I have stored data into amazon QLDB using AWS console but I want to fetch this data into my application using aws-sdk-php-laravel. My code:
public function index(){
$client = AWS::createClient('qldb-session');
$result= $client->sendCommand([
'StartSession' => [
'LedgerName' => 'Vacine-issue'
]
]);
$sessiontoken = ((object)$result->get('StartSession'))->SessionToken;
$result = $client->sendCommand([
'StartTransaction' =>
[],
'SessionToken' => $sessiontoken
]);
$transectiontoken = ((object)$result->get('StartTransaction'))->TransactionId;
$result = $client->sendCommand([
'ExecuteStatement' => [
'Statement' => 'SELECT * FROM Vaccination',
'TransactionId' => $transectiontoken,
],
'SessionToken' => $sessiontoken
]);
dd($result);
}
is showing the result in ION Binary encoding
is there any other way to get the result in simple text form ?