Giacomo is a software developer and a functional programming enthusiast. Upon discovering Gleam he couldn’t help but fall in love with the language and its friendly community. He’s now a member of Gleam’s core team and an active contributor to its compiler’s development.”
Using SQL from other programming languages can prove to be quite the hassle: wrangling the database rows into the host’s language types is tedious and error prone, and making sure the application code stays up to date with the ever-changing database schema is just as challenging.
To address these developer experience shortcomings ORMs try to shield the developer from ever having to write any SQL at all. This doesn’t feel totally satisfying though: as developers we are always keen on using the right language for the job, so what would it look like to fully embrace SQL instead of trying to abstract it away?
In this talk we’ll look at Squirrel, a library that tackles database access in Gleam: a functional, statically-typed language. We’ll explore how code generation from raw SQL can help bridge the gap between the database and a functional language without compromising on type-safety, performance or developer experience.
Key Takeaways:
This talk will show you how one can use the right language for the job when faced with the task of talking to a database. As it turns out, we can stick to writing “plain old SQL” without having to resort to fancy (and leaky!) abstraction or compromising on developer experience!
You’ll discover how one can embrace SQL while using the functional languages they know and love, and what a fun time this can be!
Target Audience: