Piton is a portable SQL testing VS Code Extension. The goal is to be an easy to use SQL tool for Quality Engineers.
-
Download and install Piton from the marketplace
-
Click the Piton icon on the sidebar
-
Click the "create piton example" button, this won't show if a .piton.sql exists already
-
Refresh the list to show 1 created file
-
Run the file and look at Piton output for the results
-
Optional - Install SQL Parser from the marketplace
-
Optional - Install CSV Viewer from the marketplace
-- pn-connectionString duckdb
-- pn-sqlDialect duckdb
-- pn-count
select * -- Explaination
from public.piton_test
-- WHERE
-- pn-check
-- pn-id-col id
select *
from public.piton_test
where name is null or name = ''
There are more formal SQL testing frameworks that requires a lot of developer setup and assistance. The goal of this tool is to be lightweight and something a QA can add to their tool kit. Similar to show Postman is help QAs even when Swagger is used.
layers |
---|
VS Code Extension |
V |
File Runner |
V |
pg or duckdb |
V |
SQL DB |
- Sometimes the Codelense will not be clickable until a file is closed and re-opened
Feature and bugfixes for each release.
Ready to review by co-workers
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Enjoy!