koxudaxi / py-data-api

A user-friendly client for AWS Aurora Serverless's Data API
https://koxudaxi.github.io/py-data-api
MIT License
40 stars 9 forks source link

Support has_table function #45

Closed hyuma closed 4 years ago

hyuma commented 4 years ago

has_table function checks the existence of the table, and used by SQLAlchemy. Override https://github.com/sqlalchemy/sqlalchemy/blob/926952c4afe0b2e16c4a74f05958bded7b932760/lib/sqlalchemy/dialects/mysql/base.py#L2433 to capture BadRequest Exception from boto3 DataAPI for "Table doesn't exist" error.

koxudaxi commented 4 years ago

@hyuma Thank you for creating this PR. I have implemented the feature on another branch. Also, I have released it as version 0.4.13.

Thank you very much.