You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
525 B

import { DataSource, DataSourceOptions } from 'typeorm';
export const dataSourceOptions: DataSourceOptions = {
type: 'mssql',
host: '193.176.240.223\\sql2017',
port: 1433,
username: 'sa',
password: 'Zar@Sql2017#1397',
database: 'TirebanClub',
entities: ['dist/**/*.entity{.ts,.js}'],
synchronize: true,
options: {
trustServerCertificate: true,
},
migrations: ['dist/db/migrations/*.js'],
requestTimeout: 300000,
};
const dataSource = new DataSource(dataSourceOptions);
export default dataSource;