Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Nov 11, 2024
1 parent b6a4b5b commit 932e36e
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 311 deletions.
9 changes: 7 additions & 2 deletions Spanner/tests/ResultGeneratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ private function yieldRows(array $rows, $stats = false, $transactionId = null)
}

if (isset($result['stats'])) {
throw new \Exception('stastistics;');
var_dump($stats);exit;
$result['stats'] = $stats;
}

Expand Down Expand Up @@ -145,6 +143,13 @@ private function resultGeneratorChunks($chunks)
}
}

private function resultGeneratorJson($chunks)
{
foreach ($chunks as $chunk) {
yield json_decode($chunk, true);
}
}

private function getStreamingDataFixture()
{
return json_decode(
Expand Down
Loading

0 comments on commit 932e36e

Please sign in to comment.