Skip to content

sambatlim/mysql_encrypted_key_connection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published