Introducing squeeel - Make your raw SQL queries type-safe
github.comΒ·7hΒ·
Discuss: r/node
Flag this post

Squeeel

Make your raw SQL queries type-safe.

Squeeel is a CLI tool that analyzes your codebase to find all your raw SQL queries and automatically generates TypeScript types for both query parameters and return values. This means you get full type safety and autocompletion for your SQL queries without any runtime overhead or query builder complexity.

Features

  • πŸ” Automatically analyzes your codebase for SQL queries
  • ✨ Generates precise TypeScript types for query parameters and return values
  • πŸš€ Zero runtime overhead - types are generated at build time
  • πŸ›‘οΈ Catches SQL errors at compile time
  • πŸ“ Full IDE support with autocompletion and type hints
  • πŸ”„ Works with your existing raw SQL queries - no need to change your code

Getting started

  1. Install squeeel:
npm install ...

Similar Posts

Loading similar posts...