import {MySQL, MySQLConfig} from 'nodejs-express-utils';
// the key that is used for the encryption and decryption the database
const encryptionKey = '';
// Your MySQL server credentials used initialize the connection
const config: MySQLConfig = {
host: '',
user: '',
password: '',
database: '',
};
const database = new MySQL(config, encryptionKey);
export default database;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter