Relica: A Zero-Dependency Query Builder for Go That Won't Break Your Code
dev.to·2d·
Discuss: DEV
🛡️Error Handling
Preview
Report Post

Why Another Query Builder?

I spent years working with Go database libraries. GORM is powerful but opaque - when something goes wrong, good luck debugging the auto-generated SQL. sqlx is great for raw SQL, but I found myself writing the same boilerplate query construction logic in every project.

What I wanted was something in between: a library that builds SQL predictably, requires zero external dependencies in production, and doesn’t make me choose between type safety and simplicity.

Relica is my answer to that problem.

The Problem with Existing Solutions

GORM does too much magic. Auto-migrations, lazy loading, hooks everywhere. When your query is slow, figuring out what SQL actually got executed requires digging through layers of abstraction. In production systems, …

Similar Posts

Loading similar posts...