sql-describe is a Rust-based Node.js native addon (via Neon bindings) that describes SQL queries using sqlx. The version 0.1.13 is the latest stable release. It compiles Rust to a binary .node addon, providing high performance and direct SQL analysis. Differentiators: leverages sqlx's query analysis capabilities at Rust speed; exposes an async describe() function that returns detailed query metadata including parameters, columns, and types.
npm install sql-describeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and calling the describe function to analyze a SQL query with a parameter placeholder.
Use await or .then() on the returned promise.
Update queries to use ? instead of $1.
Install Node.js 14+ and Rust. Use prebuilt binaries if available via package manager.
Run 'npm install sql-describe' and ensure the native addon is built (npm run build) if using git clone.
Use 'import { describe } from "sql-describe"' correctly.Use '$1' placeholders or upgrade to version >=0.2.0 for '?' support.