Skip to content

Commit

Permalink
Add option to fetch client
Browse files Browse the repository at this point in the history
  • Loading branch information
valicm committed Nov 21, 2020
1 parent 1bc5155 commit 25fe43e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,11 @@ public function listTables(array $params) {
return $response['TableNames'] ?? [];
}

/**
* {@inheritdoc}
*/
public function getClient() {
return $this->clientFactory->connect();
}

}
8 changes: 8 additions & 0 deletions src/DynamoDbInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,12 @@ public function deleteTable(array $params);
*/
public function listTables(array $params);

/**
* Get direct DynamoDB connection client.
*
* @return \Aws\DynamoDb\DynamoDbClient
* Return DynamoDB client.
*/
public function getClient();

}

0 comments on commit 25fe43e

Please sign in to comment.