changed Project Stucture - Part2
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
import {IDatabaseServices} from "./IDatabaseServices";
|
||||
import {MysqlDao} from "../../DataAccess/MySql/MysqlDao";
|
||||
import {ConnectionOptions} from "mysql2/promise";
|
||||
|
||||
export class MySqlDatabaseServices implements IDatabaseServices {
|
||||
private _databaseDao: MysqlDao;
|
||||
|
||||
constructor(databaseOptions: {
|
||||
Host: string;
|
||||
Port: number;
|
||||
Username: string;
|
||||
Password: string;
|
||||
Database: string;
|
||||
}) {
|
||||
//IMPLEMENT DATABASE
|
||||
constructor(databaseOptions: ConnectionOptions) {
|
||||
this._databaseDao = new MysqlDao(databaseOptions);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user