finds.dev← search

// the find

astaxie/beedb

★ 706 · Go · updated Dec 2014

beedb is a go ORM,support database/sql interface,pq/mysql/sqlite

beedb is a lightweight Go ORM built around database/sql that maps structs to tables and lets you write raw where-clauses instead of a query DSL. It's aimed at Go developers who want a thin convenience layer over SQL, not a full-featured ORM with relations.

The struct-tag mapping (beedb:"PK", sql:"COLUMN", tname:"TABLE") is simple and predictable, and pushing where-clauses straight to the driver avoids inventing a half-baked query builder. It also supports inline struct embedding for shared columns (id/created/modified), and the map-based Insert/Update/FindMap escape hatch is handy when you don't want a full struct for a partial update.

The README's first line says it's deprecated in favor of beego.orm, and the last commit was in 2014 — this is effectively dead code, not a library to build on. There's no relationship/join support beyond manual raw JOIN strings, no context.Context support (predates Go's context package entirely), no connection pooling per the README's own caveat, and the API takes interface{} maps in several places with no compile-time safety. It also only has driver-level test coverage for a handful of DBs (marked with `[*]`), so DB2/ODBC/Oracle support is unverified.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →