mysql-query-builder-js
Advanced tools
Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "mysql-query-builder-js", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Query builder for mysql in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,2 +8,5 @@ /** | ||
Update.prototype = require('./delete.js'); | ||
/** | ||
@@ -10,0 +13,0 @@ * Update |
@@ -10,18 +10,10 @@ var builder = require('../index'); | ||
// builder.table('pessoas') | ||
// .leftJoin('pessoa','pessoas.id','=','pessoa.id') | ||
// .get(function(err, rows, fields, sql){ | ||
// console.log(sql) | ||
// if(err){ | ||
// console.log(err) | ||
// } | ||
// console.log(rows) | ||
// }); | ||
// insert | ||
// builder.table('pessoas').insert({nome:'Jayr',email:'email@mail'}, function(err, res){ | ||
// console.log(res.insertId) | ||
// }); | ||
builder.table('pessoas') | ||
.leftJoin('pessoa','pessoas.id','=','pessoa.id') | ||
.get(function(err, rows, fields, sql){ | ||
console.log(sql) | ||
if(err){ | ||
console.log(err) | ||
} | ||
console.log(rows) | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13584
11
469