postguard

🐛 Statically validate Postgres SQL queries in JS / TS code and derive schemas.

GPL-3.0 License

Downloads
7
Stars
165
Committers
3

Bot releases are visible (Hide)

postguard - v0.2.0 Latest Release

Published by andywer over 5 years ago

Quick minor release adding support for spreadUpdate() which has just been added to squid.

New features

  • Support for spreadUpdate() (#27)
postguard - v0.1.0

Published by andywer almost 6 years ago

Initial release 🚀

  • Parses SQL queries in squid tagged template strings and schema definitions
  • Validates table and column references
  • Infers the types of spread expression arguments
  • Type-checks a query's result rows schema