Skip to content

Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.

License

Notifications You must be signed in to change notification settings

richardsonjf/safeql

 
 

Repository files navigation

SafeQL

Write SQL Queries With Confidence • Get started

npm version

demo.mp4

Install

I would first recommend follow the instructions in the documentation.

npm install --save-dev @ts-safeql/eslint-plugin libpg-query

Features

  • ⚡️ Automatic Type Inference & Validation:

    SafeQL automatically infers the type of the query result based on the query itself.

  • 🖖 Compatible With Popular SQL Libraries:

    SafeQL works with any PostgreSQL client, including Prisma, Sequelize, pg, Postgres.js, and more.

  • 🛠️ Easy To Use

    SafeQL was built in mind to be easy to use and integrate with your existing codebase.

  • 📦 Built with Monorepos & Microservices in mind:

    SafeQL was built with monorepos and microservices in mind, and it's easy to use with multiple databases.

About

Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%