Runs a SQL query directly against a registered datasource and returns the datasource result as a table. Use this when the SQL should be interpreted by the datasource dialect instead of the Chalk SQL dialect.
Parameters
The name of the registered datasource to query.
query:
string
The SQL query to execute against the datasource.
Examples
SELECT * FROM datasource_query('my_postgres', 'SELECT id, email FROM public.users LIMIT 10');