1.0.5-rocks-0.4-beta • Published 2 years ago
@tek-tech/deebee v1.0.5-rocks-0.4-beta
deebee
mysql requests made easier for nodejs
example usage
Installation
npm i @tek-tech/deebee
Initialisation
const DeeBee = require('@tek-tech/deebee');
simple connection to a mysql database || connexion simple a une base de donnee mysql
const DeeBee = require('@tek-tech/deebee'); const credentials = { user:'database_username', password:'database_password', database:'database_name', host:'database_host' }; const connection = new DeeBee(credentials); connection.whenReady( ()=>{ //do something with the connection //faire quelque chose avec la connexion } )
execute a basic sql request | executer une simple requete
const exec = connection._db(); exec.query(`select * table name`,(error,rows)=>{ if(error){ //do something with the error message | on traite l'erreur }else{ //do something with the result | on traite le resultat(rows; stores an array|contient un array) } });
1.0.5-rocks-0.4-beta
2 years ago
1.0.5-rocks-0.2-beta
2 years ago
1.0.4-pg-0.1
2 years ago
1.0.4-pg
2 years ago
1.0.5-rocks
2 years ago
1.0.5-rocks-0.1-beta
2 years ago
1.0.4-pg-0.1-beta-0.0.1
2 years ago
1.0.4-pg-0.1-beta
2 years ago
1.0.4-beta-pg-go
2 years ago
1.0.4-beta-pg
2 years ago
1.0.4-beta
2 years ago
1.0.3-tee-r5
2 years ago
1.0.3-tee-r3
2 years ago
1.0.3-tee-r2
2 years ago
1.0.3-tee-r1
2 years ago
1.0.3-tee-r
2 years ago
1.0.3-tee
2 years ago
1.0.2-ears-r1
2 years ago
1.0.2-ears-r
2 years ago
1.0.2-ears
2 years ago
1.0.1-things-r
2 years ago
1.0.1-things
2 years ago
1.0.1
2 years ago