@reldens/storage 0.5.0-beta.9 → 0.10.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/base-data-server.js
CHANGED
package/lib/base-driver.js
CHANGED
|
@@ -32,6 +32,11 @@ class BaseDriver
|
|
|
32
32
|
ErrorManager.error('BaseDriver create() not implemented.');
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
createWithRelations(params, relations)
|
|
36
|
+
{
|
|
37
|
+
ErrorManager.error('BaseDriver create() not implemented.');
|
|
38
|
+
}
|
|
39
|
+
|
|
35
40
|
update(filters, updatePatch)
|
|
36
41
|
{
|
|
37
42
|
ErrorManager.error('BaseDriver update() not implemented.');
|
|
@@ -30,6 +30,11 @@ class ObjectionJsDriver extends BaseDriver
|
|
|
30
30
|
this.rawModel.query().insert(params);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
createWithRelations(params, relations)
|
|
34
|
+
{
|
|
35
|
+
return this.rawModel.query().insertGraphAndFetch(params);
|
|
36
|
+
}
|
|
37
|
+
|
|
33
38
|
update(filters, updatePatch)
|
|
34
39
|
{
|
|
35
40
|
return this.rawModel.query().patch(updatePatch).where(filters);
|
|
@@ -47,7 +52,7 @@ class ObjectionJsDriver extends BaseDriver
|
|
|
47
52
|
|
|
48
53
|
delete(id)
|
|
49
54
|
{
|
|
50
|
-
return this.rawModel.delete().where(this.id, id);
|
|
55
|
+
return this.rawModel.query().delete().where(this.id, id);
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
count(filters)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reldens/storage",
|
|
3
3
|
"scope": "@reldens",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0-beta.20",
|
|
5
5
|
"description": "Reldens - Storage",
|
|
6
6
|
"author": "Damian A. Pastorini",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"url": "https://github.com/damian-pastorini/reldens-storage/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@reldens/utils": "^0.
|
|
48
|
-
"knex": "^0.
|
|
49
|
-
"objection": "^
|
|
47
|
+
"@reldens/utils": "^0.5.0",
|
|
48
|
+
"knex": "^0.95.14",
|
|
49
|
+
"objection": "^3.0.0",
|
|
50
50
|
"mysql": "^2.18.1"
|
|
51
51
|
}
|
|
52
52
|
}
|