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

sqlquerybuilder

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlquerybuilder - npm Package Compare versions

Comparing version 0.0.43 to 0.0.44

2

package.json
{
"name": "sqlquerybuilder",
"version": "0.0.43",
"version": "0.0.44",
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.",

@@ -5,0 +5,0 @@ "main": "./lib/index",

@@ -49,2 +49,10 @@ /**

//SELECT OBJ W/ NULLS
it('passing an object into select should produce valid sql with null aliases', function(done){
var obj = {Id: 'TicketId', EmployeeNumber: null, Name: null};
(sqlBuilder().select(obj).from("Tickets").join("Leases").build()).should.equal("SELECT Id AS 'TicketId', EmployeeNumber, Name FROM Tickets " +
"JOIN Leases ON Tickets.Lease_id = Leases.Id ");
done();
});
//SELECT STRING W/ ALIASES

@@ -76,3 +84,3 @@ it('passing a string with aliases into select should work', function(done){

});
it('should chain selects', function(done){
it('should chain selects with selectJoin first', function(done){
sqlBuilder().from('main')

@@ -79,0 +87,0 @@ .selectJoin({'main.Id':'Id', 'secondary.Id': 'secondary.Id'})

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