1.0.0 • Published 2 years ago

mysql_encrypted_key_connection v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

mysql_encrypted_key_connection

This Package will create mysql connection pool from your provided encrypted database config.

Prerequisites

This package suppose you already know mysql2 pool.You need to set .env file with DATABASE_ENCRYPT_KEY = "Private key"

Install

npm install mysql_encrypted_key_connection

USAGE

const connection = require('mysql_encrypted_key_connection');
const encrypted_database_info = 'xxxxx';
const pool = connection(encrypted_database_info);

pool.query("SELECT * FROM tableName",(err,rows,fields)=>{
    console.log(rows);
})

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Reference

1.0.0

2 years ago