Menu

1 / 2

Introducing Go DB ORM (v1.0.1) — A Type-Safe, Fluent ORM for Go

DEV Community·Md Anik Islam·6 months ago
#vQ6eEkze
#go#goorm#software#coding#enter
Reading 0:00
15s threshold

I’ve been working on an ORM for Go which is lightweight, easy to use, type-safe, and developer-friendly at its core.

The main goal of GoDB ORM is simple:

Make database handling in Go feel clean, predictable, and enjoyable — without heavy abstraction or hidden magic.

It is designed to feel like native Go, not a framework that hides what’s happening under the hood.

It also balances:

Performance

Simplicirt

Flexibility

This is the first version of this package . So, it might not have all the features you expect from an ORM, and there could be some bugs in it.

But please give it a try. Your contributions, bug reports, feature requests, and feedback will be much appreciated.

Key Features:

1. Type-Safe Query Builder (Generic API)

No interface{} chaos — everything is strongly typed:

users , err := client . Query [ User ]() . Where ( "city = ?" , "Dhaka" ) . Where ( "age > ?" , 18 ) . OrderBy ( "created_at DESC" ) . Limit ( 10 ) . Offset ( 20 ) .…

Continue reading — create a free account

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