Skip to content

davidsmfreire/sqlshield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Shield

Validate raw SQL queries present in your Python codebase against a schema using sqlshield:

$ sqlshield --help
Usage: sqlshield [OPTIONS]

Options:
  -d, --directory <DIRECTORY>
          Directory. Defaults to "." (current)

  -s, --schema <SCHEMA>
          Schema file. Defaults to "schema.sql"

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Features

The tool validates the following main clauses:

  • SELECT ✔️
    • WITH ✔️
    • JOIN ✔️
  • INSERT ❌
  • UPDATE ❌
  • DELETE ❌

Other clauses:

  • WHERE ❌
  • ORDER BY ❌
  • GROUP BY ❌
  • HAVING ❌

Similar work

About

Validate raw SQL queries in your codebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published