sql-fn
JSON →sql-fn (v0.0.1) generates JavaScript functions from SQL files, eliminating the need for an ORM. It parses .sql files in a directory and produces functions named after the files, with smart defaults: single-row return for CRUD prefixes (findOne, updateOne, createOne, deleteOne) and automatic transaction wrapping for UPDATE, DELETE, INSERT. Options allow overriding these rules globally or per query, including cursor support for streaming. Released with sparse cadence, it targets Node.js >=12 and is loosely inspired by Clojure's HugSQL. Unlike traditional ORMs, it offers zero abstraction overhead and direct SQL control.
Traffic · last 30 days stale · no recent hits
total hits 6
actors 1 distinct systems
last hit 19d ago human
top countries 🇸🇬 Singapore · 🇺🇸 United States
Resources
packagesql-fn ↗