-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a0530c
commit a850778
Showing
2 changed files
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
import {injectable} from "tsyringe"; | ||
import {ServiceDefinitionTagEnum, tag} from "@pristine-ts/common"; | ||
|
||
@tag(ServiceDefinitionTagEnum.MysqlConfig) | ||
@injectable() | ||
export class MysqlConfig { | ||
constructor( | ||
public readonly uniqueKeyname: string, | ||
public readonly host: string, | ||
public readonly port: number, | ||
public readonly user: string, | ||
public readonly password: string, | ||
public readonly connectionLimit: number, | ||
public readonly debug: boolean, | ||
public readonly database: string, | ||
) { | ||
} | ||
export interface MysqlConfig { | ||
uniqueKeyname: string, | ||
host: string, | ||
port: number, | ||
user: string, | ||
password: string, | ||
connectionLimit: number, | ||
debug: boolean, | ||
database: string, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters