mysql_encrypted_key_connection

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i mysql_encrypted_key_connection

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.61 kB

Total Files

3

Last publish

Collaborators

  • sambat