-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathormconfig.js
More file actions
33 lines (32 loc) · 859 Bytes
/
Copy pathormconfig.js
File metadata and controls
33 lines (32 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const { resolve } = require("path");
module.exports = [
{
name: "relational",
type: "mysql",
host: "localhost",
port: 3306,
username: "test",
password: "test",
database: "test",
synchronize: true,
logging: false,
entities: [resolve(__dirname, "src/models/*{.ts,.js}")],
migrations: [resolve(__dirname, "src/migrations/*{.ts,.js}")],
subscribers: [resolve(__dirname, "src/migrations/*{.ts,.js}")],
},
/* {
name: "collections",
type: process.env.DATABASE_COLLECTIONS_TYPE,
url: process.env.DATABASE_COLLECTIONS_URL,
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true,
logging: true,
synchronize: true,
extra: {
authSource: "admin",
},
entities: [resolve(__dirname, process.env.TYPEORM_ENTITIES)],
}, */
];