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
There is an open PR that would go over creating adapters.
https://github.com/better-auth/better-auth/pull/1325
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.
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?
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.