Explores an alternative approach to database access that embraces raw SQL instead of abstracting it away with ORMs. Introduces Squirrel, a library for Gleam that uses code generation from SQL queries to provide type-safety and good developer experience without sacrificing performance. Demonstrates how developers can write plain SQL while maintaining the benefits of static typing in functional languages, avoiding common ORM pitfalls like N+1 query problems.

7 Comments

Sort: