Skip to content

Commit 6639141

Browse files
committed
docs: update docs for connectors
1 parent 65c1e43 commit 6639141

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

adminforth/documentation/docs/tutorial/04-connectors.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -42,40 +42,6 @@ pnpm add @adminforth/connector-Mongo
4242
pnpm add @adminforth/connector-qdrant
4343
```
4444

45-
## Configure datasource
46-
47-
Use a datasource with a SQLite URL:
48-
49-
```ts
50-
import AdminForth from 'adminforth';
51-
52-
export const admin = new AdminForth({
53-
dataSources: [
54-
{
55-
id: 'maindb',
56-
url: 'sqlite://.db.sqlite',
57-
},
58-
],
59-
resources: [
60-
...
61-
],
62-
});
63-
```
64-
65-
The URL format is:
66-
67-
```txt
68-
sqlite://<path-to-file>
69-
```
70-
71-
Examples:
72-
73-
- `sqlite://.db.sqlite`
74-
- `sqlite://./db/app.sqlite`
75-
- `sqlite:///var/data/app.sqlite`
76-
77-
If the database file does not exist yet, SQLite will create it.
78-
7945
## How peer dependency loading works
8046

8147
AdminForth keeps connectors optional and attempts to import only the connector that matches your datasource type.

0 commit comments

Comments
 (0)