Skip to content

Commit

Permalink
working with the lowkie core data adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
yawetse committed May 5, 2017
1 parent 5ce11c7 commit db6b32c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/init/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ function configureLowkie() {
// },
// description: String,
// });
this.datas.set('configuration', CoreDataAdapter);

console.log({ __CONFIG_DB }, 'config lowkie this', this);
resolve(true);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/periodicClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class periodic {
this.controllers = new Map();
this.containers = new Map();
this.extensions = new Map();
this.dbs = new Map();
this.datas = new Map();
this.logger = console;
// this.db = undefined;
this.app = {}; //express app
Expand Down
12 changes: 12 additions & 0 deletions lib/schemas/config.lowkie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';
const lowkie = require('lowkie');
const configSchema = lowkie.Schema({
name: String,
entitytype: {
type: String,
default: 'configuration',
},
description: String,
});

module.exports = configSchema;

0 comments on commit db6b32c

Please sign in to comment.