awswrangler.data_api.rds.read_sql_query

awswrangler.data_api.rds.read_sql_query(sql: str, con: awswrangler.data_api.rds.RdsDataApi, database: Optional[str] = None) pandas.core.frame.DataFrame

Run an SQL query on an RdsDataApi connection and return the result as a dataframe.

Parameters
  • sql (str) – SQL query to run.

  • con (RdsDataApi) – A RdsDataApi connection instance

  • database (str) – Database to run query on - defaults to the database specified by con.

Returns

Return type

A Pandas dataframe containing the query results.