Home / Companies / PropelAuth / Blog / Post Details
Content Deep Dive

Libraries for writing raw SQL safely

Blog post from PropelAuth

Post Details
Company
Date Published
Author
Andrew Israel
Word Count
1,799
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

The author discusses their experience and preferences in choosing database libraries for writing example applications at PropelAuth, emphasizing the importance of minimizing the abstraction between code and SQL to maintain clarity and safety. They express a preference for libraries like SQLx, PgTyped, and JDBI, which allow direct SQL writing while providing safety features such as compile-time checking and type interfaces. Additionally, the author mentions alternatives like query builders jOOQ and Drizzle, which maintain a small gap between code and SQL. They also note the trade-offs of using raw SQL, such as reduced portability and increased verbosity, suggesting that the choice of database library should consider the complexity of queries needed and the potential benefits of using ORMs for simpler CRUD operations.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.