{"repo":"JasonShin/sqlx-ts","free":true,"listed":false,"github":"https://github.com/JasonShin/sqlx-ts","clone":"git clone https://github.com/JasonShin/sqlx-ts.git","description":"node.js compile-time SQL validations & type generations","language":"Rust","stars":241,"topics":["mysql","postgresql","rust","sql","sqlx","typescript","nodejs"],"license":"MIT","category":"databases-storage","readme_excerpt":"sqlx-ts 🧰 The Typescript/Javascript SQL Toolkit SQLx-ts is a CLI application featuring compile-time checked queries without a DSL and generates types against SQLs to keep your code type-safe - Compile time checked queries - never ship a broken SQL query to production (and sqlx-ts is not an ORM) - TypeScript type generations - generates type definitions based on the raw SQLs and you can use them with any MySQL, PostgreSQL, or SQLite driver - Database Agnostic - support for PostgreSQL, MySQL, and SQLite - TypeScript and JavaScript - supports for both TypeScript and JavaScript 📔 Official Documentation 🤓 Demo Installation Install sqlx-ts npm module (recommended) If you are using npm If you are using yarn You can also install sqlx-ts globally Installing sqlx-ts using npm also installed sqlx-ts binary of the same version as the npm module. Verify the installation by running And to use sqlx-ts in your code In TypeScript based projects: In Babel based projects: Using Raw SQL Files Create a SQL file with annotations: Then, you can use the sqlx-ts CLI to generate TypeScript types and check the SQL queries Installing binary separately You may choose to install sqlx-ts separately instead of using npm i Using install.sh The binary name for sqlx-ts is sqlx-ts . Archives of precompiled binaries of sqlx-ts are available for windows, macOS and Linux. Linux and Windows binaries are static executables. Users of platforms not explicitly mentioned below are advised to download one of these arc","default_branch":null,"files":null,"tree":[],"storefront":"/r/JasonShin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JasonShin/sqlx-ts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}