Query Runners
https://redash.io/help/open-source/dev-guide/write-a-query-runner
1. Intro
from redash.query_runner import BaseQueryRunner, register
class Firebolt(BaseQueryRunner):
def run_query(self, query, user):
pass2. Configuration
@classmethod
def configuration_schema(cls):
return {
"type": "object",
"properties": {
"api_endpoint": {"type": "string", "default": DEFAULT_API_URL},
"engine_name": {"type": "string"},
"DB": {"type": "string"},
"user": {"type": "string"},
"password": {"type": "string"}
},
"order": ["user", "password", "api_endpoint", "engine_name", "DB"],
"required": ["user", "password", "engine_name", "DB"],
"secret": ["password"],
}i. File uploads
3. Executing the query
4. Mapping Column Types to the application Types
5. Fetching Database Schema
i. Including Column Types in the Schema Browser
6. Adding Test Connection Support
7. Supporting Auto Limit for SQL Databases
8. Checking for Required Dependencies
9. Finishing up
10. Summary
Last updated
Was this helpful?