Skip to content
| Marketplace
Sign in
Visual Studio Code>Data Science>PitonNew to Visual Studio Code? Get it now.
Piton

Piton

Jeff Sallans

|
713 installs
| (1) | Free
Simple SQL quality checking tool
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Piton

Piton is a portable SQL testing VS Code Extension. The goal is to be an easy to use SQL tool for Quality Engineers.

Screenshot

screenshot

Installation

  1. Download and install Piton from the marketplace

  2. Click the Piton icon on the sidebar

  3. Click the "create piton example" button, this won't show if a .piton.sql exists already

  4. Refresh the list to show created files

  5. Run a file and look at Piton output for the results

  6. Click on the "has valid characters" in the piton explorer view

  7. Click the approve button next to "has valid characters" and the check will be set to pass

  8. 🎉 Congrats! You got the first file passing!

  9. Optional - Install SQL Parser from the marketplace

  10. Optional - Install CSV Viewer from the marketplace

Docs

Docs

Example

-- pn-connectionString pn-filePath/sqlite-example.db
-- pn-sqlDialect sqlite

-- pn-count
select *
from Studio_Ghibli

-- pn-check
-- pn-name has valid characters
-- pn-id-col Name
select *
from Studio_Ghibli
where Name like '%ä%'

-- pn-check
-- pn-expect snapshot
-- pn-id-col Name
select *
from Studio_Ghibli

Why Another Testing Library?

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.

Supported SQL

  • pg
  • duckdb
  • sqlite
  • oracle

Architecture

layers
1. VS Code Extension
2. File Runner
3. SQL Dialect (pg, oracledb, sqlite, or duckdb)
4. SQL DB

Known Issues

  • duckdb overrides any approved values set in the .csv because of an ID issue
  • the run button does not disable if the job is running already

Release Notes

Feature and bugfixes for each release.

0.11.5

  • Fixed oracle sql dialect option and connection string issues
  • Added Sql Server support

0.11.3

  • Fixed summary page showing more files when it shouldn't

0.11.0

  • Added file minimap report

0.10.1

  • Minor chart color changes

0.10.0

  • Added summary run screen

0.9.0

  • Added snapshot capabilities
  • Added approval and deny hot buttons

0.8.4

  • Fixed issue parsing files

0.8.3

  • Significantly reduced vsix size
  • Refactored query parsing to handle more types of queries
  • Cleaning up memory usage after run

0.8.2

  • fixed sqlite connection issue

0.8.0

  • Added a result.piton.csv to summarize the results
  • Improved the sidebar to show more result data
  • Added oracledb to sql dialects
  • Added sqlite to sql dialects
  • Added on hover hints for piton logic

0.7.0

Ready to review by co-workers

Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

Primary Style Color: #ADBBD8

  • Extension Guidelines

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft