SQL Playground Editor
As a all-in-one data orchestration platform it is often necessary to run basic queries against certain data connectors to confirm logic and data. This can also be used to validate queries you might use in the SQL Data Query source connector when trying to sync a single query with a major target destination of your choice.
Currently DLH.io only supports a few connectors for your ad-hoc queries in the SQL Playground editor. This is done on purpose since your IDE or local machine tool typicall has many more features and does the heavy lifting. Whereas DLH.io is meant for basic queries to validate the query can run successfully before and if being used in the SQL Data Query connector.
- Source Connectors
- Target Connectors
- You need to have created a connector for one of the supported connectors
Write basic queries in the supported language of the connector. For example any single query that works against Snowflake should work in the SQL Playground editor, and for example any SuiteQL query that works in NetSuite should work here as well.
Navigate to the option Transformation > SQL Playground or from the Transformations page click on the Open SQL Playground button
On the SQL Playground page, you have a basic editor.
- Click the option dropdown box in the upper right of the page to select your supported connection, if already created (See prerequisite).
- Enter a SQL statement that you wish to test or get the results from
- Click the Run button to execute the query
- Note: Like most editors, it will run the single query in the editor, but if mulitple queries, it will run the query which the cursor is on. Highlight text when multiple queries are available in the editor.
- View the results in the Query Results section
Some basic features and shortcusts are provided to make running queries easier.
- Highlight Text to Query:
- Highlight the text you wish to query then either use the run query shortcut or press the Run button.
- Control/Command + Enter/Return:
- Query shortchut to run a query in the editor.