Custom DB Adapter

Hello, I wanted to ask someone to point me to the docs (if any) on how to go about building a custom adapter. I am using EdgeDB. I would like to build a custom adapter around that. Migrations don't matter because I handle those on my own. Thanks!
4 Replies
Ping
Ping2w ago
I believe that it would be merged alongside other PRs for Better Auth v1.2. However I can ask if we can push these docs to come out faster.
kaneki
kanekiOP2w ago
This is perfect. I will just read what's in the PR. Thanks a ton man! Quick question, is the ability to create a custom adapter contingent on code for v1.2? Or can it be done on the current version?
Ping
Ping2w ago
current version works! I also recommend checking out how Better Auth internally creates adapters for ORMs like Drizzle and stuff. Taking a look at their code can give inspiration on how to approach certain things.

Did you find this page helpful?