BE/ormconfig.ts
2025-05-10 16:22:30 +05:30

48 lines
1.0 KiB
TypeScript

import { DataSourceOptions } from 'typeorm';
export const OracleConfig: any = {
user: 'Carnetsys',
password: 'Carnet1234',
connectString: '172.31.18.76/xe',
// user: 'C##carnetsys',
// password: 'root',
// connectString: '192.168.1.96/xe',
};
export const MssqlConfig: any = {
// type: 'mssql',
server: 'localhost',
user: 'mssql1433',
password: 'root',
database: 'CarnetDB',
// server: '172.31.18.76',
// port: 1433,
// user: 'Carnetsys',
// password: 'Carnet1234',
// database: 'CarnetDB',
// entities: [__dirname + '/**/*.entity{.ts,.js}'],
// synchronize: true,
options: {
enableArithAbort: true,
trustServerCertificate: true,
encrypt:true
},
};
export const MysqlConfig: DataSourceOptions = {
type: 'mysql',
host: 'localhost',
port: 3306,
username: 'root',
password: 'root',
database: 'demo',
// entities: [__dirname + '/**/*.entity{.ts,.js}'],
synchronize: true,
};