@arshadkazmi42/my-no-sql
v1.0.2
Published
Light weight easy to use MySQL client
Downloads
24
Maintainers
Readme
my-no-sql
Light weight easy to use MySQL client
Give us a :star: if you like our work :heart:
Install
$ npm install @arshadkazmi42/my-no-sql
Usage
const SqlClient = require('@arshadkazmi42/my-no-sql');
const DB_OPTIONS = {
host: 'hostname',
database: 'database_name',
user: 'database_user',
password: 'database_password',
acquireTimeout: 'aquired_timeout' // optional
}
const Client = new SqlClient(DB_OPTIONS);
const QUERY = `SELECT * FROM TABLE_NAME WHERE ID = ?`;
const QUERY_VALUES = [1];
(async () => {
const queryResult = await Client.queryAsync(QUERY, QUERY_VALUES);
})();
Contributing
We are constantly working on improving my-no-sql
and we need all the help we can get.
You can contribute to this project by giving suggestions, fixing open issues or by implementing a new feature. Read our contibution guide here
Contributors
Thank you to all the contributors who have helped us in making this project better 🙌