Skip to content

Instantly share code, notes, and snippets.

@dev-sankhadip
Created July 21, 2020 08:23
Show Gist options
  • Save dev-sankhadip/e2a32fe1c4f3b7281b05df00e8056e57 to your computer and use it in GitHub Desktop.
Save dev-sankhadip/e2a32fe1c4f3b7281b05df00e8056e57 to your computer and use it in GitHub Desktop.
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