POST
/
api
/
v2
/
database
/
sql
Python
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
response = client.v2.database.execute_sql(
    query="query",
)
print(response.rows)
{
  "rows": [
    {}
  ]
}

Body

application/json

Response

200
application/json

The result of the SQL query execution.