TypeORM-readme-12.ts
· 290 B · TypeScript
Sin formato
export const AppDataSource = new DataSource({
type: "postgres",
host: "localhost",
port: 5432,
username: "test",
password: "test",
database: "test",
synchronize: true,
logging: true,
entities: [Post, Category],
subscribers: [],
migrations: [],
})
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 | }) |