Skip to content

Commit

Permalink
update readme for PostgreSQL (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi authored Jul 25, 2020
1 parent 4216548 commit f53a677
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ In [1]: import boto3; client = boto3.client('rds-data', endpoint_url='http://127
In [2]: client.execute_statement(resourceArn='arn:aws:rds:us-east-1:123456789012:cluster:dummy', secretArn='arn:aws:secretsmanager:us-east-1:123456789012:secret:dummy', sql='show databases', database='test')
```

#### If you use PostgreSQL, then you should run this line to check databases.
```python
In [2]: client.execute_statement(resourceArn='arn:aws:rds:us-east-1:123456789012:cluster:dummy', secretArn='arn:aws:secretsmanager:us-east-1:123456789012:secret:dummy', sql='SELECT datname FROM pg_database', database='test')
```

4. local-data-api return the result from a MySQL Server.
```python
Out[2]: {'ResponseMetadata': {'HTTPStatusCode': 200,
Expand Down

0 comments on commit f53a677

Please sign in to comment.