Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Commit 5b6b004

Browse files
committed
feat: add typeorm config and sqlite
1 parent d5fdc20 commit 5b6b004

8 files changed

+262
-14
lines changed

ormconfig.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"type": "sqlite",
3+
"database": "database.sqlite",
4+
"synchronize": true,
5+
"logging": false,
6+
"entities": ["src/db/entities/**/*.ts"],
7+
"migrations": ["src/db/migrations/**/*.ts"],
8+
"subscribers": ["src/db/subscriber/**/*.ts"],
9+
"cli": {
10+
"entitiesDir": "src/db/entities",
11+
"migrationsDir": "src/db/migrations",
12+
"subscribersDir": "src/db/subscriber"
13+
}
14+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"reflect-metadata": "^0.1.13",
3232
"rimraf": "^3.0.2",
3333
"rxjs": "^6.5.5",
34+
"sqlite3": "^4.1.1",
3435
"typeorm": "^0.2.24"
3536
},
3637
"devDependencies": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

yarn.lock

+247-14
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)