New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

anydb-sql

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anydb-sql - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

11

anydb-sql.js

@@ -105,4 +105,15 @@ var anyDB = require('any-db');

self.allOf = function() {
var tables = [].slice.call(arguments);
return tables.reduce(function (all, table) {
var tableName = table.alias || table._name;
return all.concat(table.columns.map(function(c) {
return c.as(tableName + '.' + c.name);
}));
}, []);
};
return self;
};

2

package.json
{
"name": "anydb-sql",
"version": "0.1.5",
"version": "0.1.6",
"description": "anydb-sql combines node-anydb and node-sql",

@@ -5,0 +5,0 @@ "main": "anydb-sql.js",

@@ -78,4 +78,13 @@ var test = require('tap').test;

});
})
});
t.test('allof', function(t) {
var q = user.select(db.allOf(user, user));
var text = 'SELECT "users"."id" AS "users.id",'
+ ' "users"."name" AS "users.name", "users"."id" AS "users.id",'
+' "users"."name" AS "users.name" FROM "users"';
t.equals(q.toQuery().text, text);
t.end();
});
t.test('db.close', function(t) {

@@ -82,0 +91,0 @@ t.plan(1);

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