from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v1.sql_execute(
params=[{}],
query="query",
)
print(response)
{
"rows": [
"<any>"
]
}
Allows execution of arbitrary SQL queries against the Sample database. Supports parameterized queries.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v1.sql_execute(
params=[{}],
query="query",
)
print(response)
{
"rows": [
"<any>"
]
}
The result of the SQL query execution. On success, returns 'rows'. If the query had issues but was processed, may return an 'error' object within a 200 response.