Menu

Duck: DuckDB for Swift. Powerful SQL inside iOS and macOS apps
📰

Duck: DuckDB for Swift. Powerful SQL inside iOS and macOS apps

DEV Community: database·Mikhail Isaev·5 days ago
#n10CTNJs
#devtodatabase#devto#dev#todo#enter
Reading 0:00
15s threshold

Hi, DEV!

I've been working with Swift for many years, and quite a few of my open-source projects grew out of the same simple desire: I want everyday code to be clean, expressive, and pleasant to write.

Back in 2018, that led me to build CodyFire and UIKitPlus . Later came SwifQL , FCM , and a number of other libraries I mostly use in server-side Swift projects.

Over the years, working on the server side also shaped the way I like to work with databases. I got used to PostgreSQL, powerful SQL, and the idea that the database itself can do a large part of the heavy lifting.

At the same time, my own libraries already let me describe tables as ordinary Swift models, build SQL with type-safe key paths, and use declarative result-builder syntax that feels very natural in modern Swift.

Eventually I reached a point where I didn't want to give that up every time I switched back to iOS or macOS development.

Ideally, I wanted to describe models and queries almost the same way regardless of whether the code was…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.