Skip to content

feat: Add database adapter for Ent ORM #22

Description

@sayem314

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

  • I have searched existing issues and discussions for similar proposals.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions