@reldens/storage 0.10.0-beta.25 → 0.10.0-beta.29
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 +7 -7
- package/lib/base-driver.js +18 -8
- package/lib/entity-manager.js +1 -1
- package/package.json +4 -4
package/lib/base-data-server.js
CHANGED
|
@@ -12,13 +12,13 @@ class BaseDataServer
|
|
|
12
12
|
|
|
13
13
|
constructor(props)
|
|
14
14
|
{
|
|
15
|
-
this.config = sc.
|
|
16
|
-
this.client = sc.
|
|
17
|
-
this.poolConfig = sc.
|
|
18
|
-
this.connectString = sc.
|
|
19
|
-
this.rawModel = sc.
|
|
20
|
-
this.name = sc.
|
|
21
|
-
this.initialized = sc.
|
|
15
|
+
this.config = sc.get(props, 'config', false);
|
|
16
|
+
this.client = sc.get(props, 'client', false);
|
|
17
|
+
this.poolConfig = sc.get(props, 'poolConfig', false);
|
|
18
|
+
this.connectString = sc.get(props, 'connectString', false);
|
|
19
|
+
this.rawModel = sc.get(props, 'rawModel', false);
|
|
20
|
+
this.name = sc.get(props, 'name', false);
|
|
21
|
+
this.initialized = sc.get(props, 'initialized', false);
|
|
22
22
|
this.rawEntities = props.rawEntities;
|
|
23
23
|
let entities = props.entities || props.rawEntities ? this.generateEntities(props.rawEntities) : {};
|
|
24
24
|
this.entityManager = new EntityManager({entities});
|
package/lib/base-driver.js
CHANGED
|
@@ -11,14 +11,14 @@ class BaseDriver
|
|
|
11
11
|
|
|
12
12
|
constructor(props)
|
|
13
13
|
{
|
|
14
|
-
this.config = sc.
|
|
15
|
-
this.rawModel = sc.
|
|
16
|
-
this.rawId = sc.
|
|
17
|
-
this.rawName = sc.
|
|
18
|
-
this.limit = sc.
|
|
19
|
-
this.offset = sc.
|
|
20
|
-
this.sortBy = sc.
|
|
21
|
-
this.sortDirection = sc.
|
|
14
|
+
this.config = sc.get(props, 'config', false);
|
|
15
|
+
this.rawModel = sc.get(props, 'rawModel', false);
|
|
16
|
+
this.rawId = sc.get(props, 'id', false);
|
|
17
|
+
this.rawName = sc.get(props, 'name', false);
|
|
18
|
+
this.limit = sc.get(props, 'limit', 0);
|
|
19
|
+
this.offset = sc.get(props, 'offset', 0);
|
|
20
|
+
this.sortBy = sc.get(props, 'sortBy', false);
|
|
21
|
+
this.sortDirection = sc.get(props, 'sortDirection', false);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
databaseName()
|
|
@@ -36,6 +36,16 @@ class BaseDriver
|
|
|
36
36
|
ErrorManager.error('BaseDriver name() not implemented.');
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
tableName()
|
|
40
|
+
{
|
|
41
|
+
ErrorManager.error('BaseDriver tableName() not implemented.');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
property(propertyName)
|
|
45
|
+
{
|
|
46
|
+
ErrorManager.error('BaseDriver property() not implemented.');
|
|
47
|
+
}
|
|
48
|
+
|
|
39
49
|
create(params)
|
|
40
50
|
{
|
|
41
51
|
ErrorManager.error('BaseDriver create() not implemented.');
|
package/lib/entity-manager.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reldens/storage",
|
|
3
3
|
"scope": "@reldens",
|
|
4
|
-
"version": "0.10.0-beta.
|
|
4
|
+
"version": "0.10.0-beta.29",
|
|
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.95.
|
|
49
|
-
"objection": "^3.0.
|
|
47
|
+
"@reldens/utils": "^0.10.0-beta.3",
|
|
48
|
+
"knex": "^0.95.15",
|
|
49
|
+
"objection": "^3.0.1",
|
|
50
50
|
"mysql": "^2.18.1"
|
|
51
51
|
}
|
|
52
52
|
}
|