Problem
Limen only supports GORM and database/sql adapters. Many Go projects use Ent (entgo.io) as their primary graph ORM.
Proposed solution
Add a native Ent adapter that implements Limen's internal Database interface. It should accept an initialized Ent client directly:
auth, err := limen.New(&limen.Config{
BaseURL: "http://localhost:8080",
Database: entadapter.New(entClient),
})
This integrates Limen's tables (User, Session, Key) into the Ent code generation pipeline, enabling type-safe auth data access and joins.
Affected module
a new adapter
Checklist
Problem
Limen only supports GORM and database/sql adapters. Many Go projects use Ent (entgo.io) as their primary graph ORM.
Proposed solution
Add a native Ent adapter that implements Limen's internal Database interface. It should accept an initialized Ent client directly:
This integrates Limen's tables (User, Session, Key) into the Ent code generation pipeline, enabling type-safe auth data access and joins.
Affected module
a new adapter
Checklist