File tree Expand file tree Collapse file tree
adminforth/documentation/docs/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,40 +42,6 @@ pnpm add @adminforth/connector-Mongo
4242pnpm 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
8147AdminForth keeps connectors optional and attempts to import only the connector that matches your datasource type.
You can’t perform that action at this time.
0 commit comments