mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
docs: fix database example
This commit is contained in:
@@ -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**
|
**Example: Custom Kysely Instance**
|
||||||
|
|
||||||
```ts title="auth.ts"
|
```ts title="auth.ts"
|
||||||
@@ -69,16 +73,12 @@ import { db } from "./db"
|
|||||||
|
|
||||||
export const auth = await betterAuth({
|
export const auth = await betterAuth({
|
||||||
database: {
|
database: {
|
||||||
kysely: db,
|
db: db,
|
||||||
type: "sqlite" // or "mysql", "postgres" or "mssql"
|
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
|
## Using Adapters
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user