Created
July 21, 2020 08:23
-
-
Save dev-sankhadip/e2a32fe1c4f3b7281b05df00e8056e57 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { MysqlError } from "mysql"; | |
export interface IDBManager { | |
ReadData(query: string, paramCollection: (number | string | boolean)[]): Promise<any | MysqlError> | |
InsertOrUpdateData(query: string, paramCollection: (number | string | boolean)[]): Promise<any | MysqlError> | |
DeleteData(query: string, paramCollection: (number | string | boolean)[]): Promise<any | MysqlError> | |
} | |
export type MySqlType = MysqlError | any; | |
export interface IStudent { | |
id?: string; | |
name: string; | |
email: string; | |
age: number; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment