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

sqb

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqb - npm Package Compare versions

Comparing version 0.14.0 to 1.0.0-beta.1

9

lib/connect/Connection.js

@@ -64,7 +64,2 @@ /* SQB

get metaData() {
return this._metaData ||
(this._metaData = new MetaData(this, this.pool._driver.metaOperator));
},
get referenceCount() {

@@ -281,2 +276,6 @@ return this._priv.refCount;

Connection.prototype.metaData = function() {
return new MetaData(this, this.pool._driver.metaOperator);
};
/*

@@ -283,0 +282,0 @@ * Private Methods

@@ -33,5 +33,5 @@ /* SQB

const _columns = this._columns && this._columns.length ? this._columns : null;
const sql = this.metaOperator.getSelectSql(tableName);
const sql = this.metaOperator.getSelectSql(String(tableName).toLowerCase());
return this.dbobj.select(_columns)
.from(this.pool.raw('(' + sql + ')'));
};

@@ -117,8 +117,2 @@ /* SQB

return this._npool.options;
},
get metaData() {
return this._metaData ||
(this._metaData =
new MetaData(this, this._driver.metaOperator));
}

@@ -250,2 +244,6 @@

Pool.prototype.metaData = function() {
return new MetaData(this, this._driver.metaOperator);
};
Pool.PoolState = lightningPool.PoolState;

@@ -252,0 +250,0 @@

@@ -41,3 +41,2 @@ /* SQB

this._rows = rows;
}

@@ -119,2 +118,12 @@

/**
* Returns the iterator
*
* @return {Object}
*/
Rowset.prototype.iterator = function() {
// eslint-disable-next-line no-undef
return this[Symbol.iterator]();
};
Rowset.prototype.moveTo = function(rowNum) {

@@ -162,1 +171,16 @@ this.rowNum = rowNum;

/**
* Returns the iterator object contains rows
*
* @return {Object} - Returns the iterator object contains rows
*/
// eslint-disable-next-line no-undef
Rowset.prototype[Symbol.iterator] = function() {
const self = this;
self.reset();
return {
next: function() {
return {value: self.next(), done: self.isEof};
}
};
};
{
"name": "sqb",
"description": "Plugin-driven, multi-dialect SQL query builder and Database connection framework for JavaScript",
"version": "0.14.0",
"version": "1.0.0-beta.1",
"author": "Panates Ltd.",

@@ -6,0 +6,0 @@ "contributors": [

@@ -22,3 +22,3 @@

Take a look at [documentation](https://panates.gitbooks.io/sqb/content/) for details
Take a look at [DOCUMENTATION](https://panates.gitbooks.io/sqb/content/) for details

@@ -29,3 +29,3 @@ You can report bugs and discuss features on the [GitHub issues](https://github.com/panates/sqb/issues) page

***Note:*** *SQB is in alpha state. Currently, production use is not recommended.*
***Note:*** *SQB is in BETA state. Currently, production use is not recommended.*

@@ -32,0 +32,0 @@ ## Installation

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