Commit ea4a6feb authored by Milan Wikarski's avatar Milan Wikarski
Browse files

Upgrade from 2.

6.
0" [patch]
parent 4c840328
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment