Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NPM Packages
js-db
Commits
ea4a6feb
Commit
ea4a6feb
authored
Mar 29, 2020
by
Milan Wikarski
Browse files
Upgrade from 2.
6. 0" [patch]
parent
4c840328
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/database.class.js
View file @
ea4a6feb
...
...
@@ -35,11 +35,10 @@ class Database {
}
/**
* Creates a Query object
* Creates a
Generic
Query 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment