{"library":"sql-fn","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.0.1","tags":["javascript","sql","pg","postgres"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-fn","imports":["import { generate } from 'sql-fn';","import { withOptions } from 'sql-fn';","import { withTransaction } from 'sql-fn';"]},{"cmd":"yarn add sql-fn","imports":[]},{"cmd":"pnpm add sql-fn","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"sql-fn","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}