...
 
Commits (2)
{
"name": "@creanet/js-db",
"version": "2.5.5",
"version": "2.6.0",
"description": "Used for communication between NodeJS and PostgreSQL",
"main": "index.js",
"scripts": {
......
......@@ -35,11 +35,10 @@ class Database {
}
/**
* Creates a Query object
* Creates a GenericQuery object
*
* @param {String} query
* @param {Array.<any>} data
* @returns {GenericQuery} query
*/
query(query, data = []) {
return new GenericQuery(this, query, data);
......@@ -49,7 +48,6 @@ class Database {
* Creates a Select object
*
* @param {String} table
* @returns {Select} select
*/
select(table) {
return new Select(this, table);
......@@ -59,7 +57,6 @@ class Database {
* Creates an Insert object
*
* @param {String} table
* @returns {Insert} insert
*/
insert(table) {
return new Insert(this, table);
......@@ -69,7 +66,6 @@ class Database {
* Creates a Delete object
*
* @param {String} table
* @returns {Delete} delete
*/
delete(table) {
return new Delete(this, table);
......@@ -79,7 +75,6 @@ class Database {
* Creates an Update object
*
* @param {String} table
* @returns {Update} update
*/
update(table) {
return new Update(this, table);
......@@ -87,8 +82,6 @@ class Database {
/**
* Begins a transaction
*
* @returns {Promise.<GenericQuery>} success
*/
begin() {
return this.query('BEGIN');
......@@ -96,8 +89,6 @@ class Database {
/**
* Commits an active transaction
*
* @returns {Promise.<GenericQuery>} success
*/
commit() {
return this.query('COMMIT');
......@@ -105,8 +96,6 @@ class Database {
/**
* Creates and returns a new `Tape` instance
*
* @returns {Tape} tape
*/
tape() {
return new Tape(this);
......