A Visual Studio Code extension which extends the SQTools extension to work with the SingleStore.
Connect
to a SingleStoreDB instanceManage
connections in SQLTools Database ExplorerView
tables, views, columns, functions, proceduresGenerate
INSERT
queriesAutocomplete
SQL keywords, table and view names, column names, SingleStore built-in
functions
Run
SQL queriesExport
SQL query results in CSV and JSON data formats
Launch VS Code Quick Open (Ctrl+P
), paste the following command, and press enter.
ext install singlestore.sqltools-singlestore-driver
Alternatively, you can install this extension directly in VSCode IDE from Extensions tab (Ctrl+Shift+X
) by searching for @tag:sqltools singlestore
.
Here you can see several examples of driver usage. For more information on how to use SQLTools please refer to SQLTools documentation
untitled.mp4
Note:
Show records default limit
parameter defines the maximum number of rows that will be shown in the result.
untitled.mp4
untitled.mp4
untitled.mp4
Note: When creating a function or a procedure, you must change the delimiter to ensure that the function or procedure definition is correctly passed to the server as a single statement. The default delimiter is a semicolon (;). A problem arises when creating functions or procedures because they use semicolons as statement delimiters within the function body. Therefore, you must change the delimiter setting before creating your function or procedure, and then set it back to a semicolon after the alternate delimiter is no longer needed. The DELIMITER commands must be on independent lines.
Example:
DELIMITER //
CREATE OR REPLACE PROCEDURE courses_sp (course_code TEXT, section_number INT, number_students INT) AS
DECLARE
code TEXT = UCASE(course_code);
num_students INT = number_students + 1;
BEGIN
INSERT INTO courses VALUES (code, section_number, num_students);
END //
DELIMITER ;
If you have any questions, find a bug, or have a feature request please open an issue.
- Clone this repository and open it in the VS Code.
- Run
npm install
to install all dependencies. - Run
npm run watch
- Open
extension.ts
file and press F5. This opens a new VS Code window with a development version of the driver extension loaded.