SingleStore SQrL makes working with your SingleStore database in VSCode magical.
- Translate natural language queries to SQL code! Simply write a SQL comment ("--" followed by your question or description) to have your answer in SQL code.
- Execute SQL code on a connected SingleStore database and view the results.
To retrieve your SingleStore database connection credentials, follow these steps:
- Sign in to SingleStore
- Select 'Workspaces' under Cloud on the left panel
- Select the three-dot menu under 'Actions' for your desired workspace.
- Select 'Connect Directly,' 'Your App,' then 'Node.js' under the dropdown.
- For Database Name, copy your desired database name from the 'Databases' tab
- For username/password access, see the 'Access' tab.
- Open a SQL file and write '--' followed by a natural language query. Select the entire query then press Cmd + Shift + T (Mac) or Ctrl + Shift + T (Windows).
- Inspect the query and make changes as necessary. It should automatically leverage table and column names from your SingleStore database.
- Select the generated SQL code (or your own code) and press Cmd + Shift + R to execute the query and view results in a popup window – super fast thanks to SingleStore's industry-leading performance.
To configure the extension, use the "Open configuration page" command from the command palette.
- Enter Cmd + Shift + P on Mac, or Ctrl + Shift + P on Windows
- Search "Open configuration page"
- Press enter