docs: fix database example

This commit is contained in:
Bereket Engida
2024-10-07 19:39:27 +03:00
parent b2e5a06b4c
commit d550fad97b

View File

@@ -61,6 +61,10 @@ export const auth = await betterAuth({
})
```
<Callout>
See <Link href="https://kysely.dev/docs/dialects" target="_blank"> Kysley Dialects </Link> for more dialects supported by kysley.
</Callout>
**Example: Custom Kysely Instance**
```ts title="auth.ts"
@@ -69,16 +73,12 @@ import { db } from "./db"
export const auth = await betterAuth({
database: {
kysely: db,
db: db,
type: "sqlite" // or "mysql", "postgres" or "mssql"
}
})
```
<Callout>
See <Link href="https://kysely.dev/docs/dialects" target="_blank"> Kysley Dialects </Link> for more dialects supported by kysley.
</Callout>
## Using Adapters