1.0.4 • Published 7 years ago

mysql-layer v1.0.4

Weekly downloads
1
License
BSD-2-Clause
Repository
github
Last release
7 years ago

mysql-layer

A simple Layer for mysql with promises

Installation

npm install mysql-layer --save-dev

Usage

Please see test.js on how to use

db.db_connect(host,user,password,database)
  .then(function(){
    var cols = ['location', 'maxperson'];
    var whereObj = {'tourid':28 , 'maxperson' : 3}        
    db.db_select("tour" , cols, whereObj)
    .then(function(rows){
      console.log(rows);
    })
  })
  .then(function(){
    db.db_close();  
})

Copyright and License

Copyright 2017, Nawaz under the BSD2 license.

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago