Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mysql-query-builder-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql-query-builder-js - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

src/delete.js

2

package.json
{
"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)
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc