diff --git a/docs/content/docs/(documentation)/usage/database.mdx b/docs/content/docs/(documentation)/usage/database.mdx index 550f615..0b0db2f 100644 --- a/docs/content/docs/(documentation)/usage/database.mdx +++ b/docs/content/docs/(documentation)/usage/database.mdx @@ -188,23 +188,20 @@ export default serve({ ### SQLocal -To use bknd with `sqlocal` for a offline expierence, you need to install the `@bknd/sqlocal` package. You can do so by running the following command: +To use bknd with `sqlocal` for a offline expierence, you need to install the `sqlocal` package. You can do so by running the following command: ```bash -npm install @bknd/sqlocal +npm install sqlocal ``` -This package uses `sqlocal` under the hood. Consult the [sqlocal documentation](https://sqlocal.dallashoffman.com/guide/setup) for connection options: +Consult the [sqlocal documentation](https://sqlocal.dallashoffman.com/guide/setup) for connection options: ```ts -import { createApp } from "bknd"; -import { SQLocalConnection } from "@bknd/sqlocal"; +import { createApp, sqlocal } from "bknd"; +import { SQLocalKysely } from "sqlocal/kysely"; const app = createApp({ - connection: new SQLocalConnection({ - databasePath: ":localStorage:", - verbose: true, - }), + connection: sqlocal(new SQLocalKysely(":localStorage:")), }); ```