knox revidoval tento gist . Přejít na revizi
1 file changed, 13 insertions
TypeORM-readme-12.ts(vytvořil soubor)
@@ -0,0 +1,13 @@ | |||
1 | + | export const AppDataSource = new DataSource({ | |
2 | + | type: "postgres", | |
3 | + | host: "localhost", | |
4 | + | port: 5432, | |
5 | + | username: "test", | |
6 | + | password: "test", | |
7 | + | database: "test", | |
8 | + | synchronize: true, | |
9 | + | logging: true, | |
10 | + | entities: [Post, Category], | |
11 | + | subscribers: [], | |
12 | + | migrations: [], | |
13 | + | }) |
Novější
Starší