@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.
@@ -12,13 +12,13 @@ class BaseDataServer
12
12
 
13
13
  constructor(props)
14
14
  {
15
- this.config = sc.getDef(props, 'config', false);
16
- this.client = sc.getDef(props, 'client', false);
17
- this.poolConfig = sc.getDef(props, 'poolConfig', false);
18
- this.connectString = sc.getDef(props, 'connectString', false);
19
- this.rawModel = sc.getDef(props, 'rawModel', false);
20
- this.name = sc.getDef(props, 'name', false);
21
- this.initialized = sc.getDef(props, 'initialized', false);
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});
@@ -11,14 +11,14 @@ class BaseDriver
11
11
 
12
12
  constructor(props)
13
13
  {
14
- this.config = sc.getDef(props, 'config', false);
15
- this.rawModel = sc.getDef(props, 'rawModel', false);
16
- this.rawId = sc.getDef(props, 'id', false);
17
- this.rawName = sc.getDef(props, 'name', false);
18
- this.limit = sc.getDef(props, 'limit', 0);
19
- this.offset = sc.getDef(props, 'offset', 0);
20
- this.sortBy = sc.getDef(props, 'sortBy', false);
21
- this.sortDirection = sc.getDef(props, 'sortDirection', false);
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.');
@@ -11,7 +11,7 @@ class EntityManager
11
11
 
12
12
  constructor(props)
13
13
  {
14
- this.entities = sc.getDef(props, 'entities', {});
14
+ this.entities = sc.get(props, 'entities', {});
15
15
  }
16
16
 
17
17
  setEntities(entities)
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.25",
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.6.0",
48
- "knex": "^0.95.14",
49
- "objection": "^3.0.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
  }