Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit 64389ab954 - Show all commits

View File

@ -30,6 +30,19 @@ class DB {
.toString()
db.run(query)
}
find (where, cb) {
const query.select()
.from(this._table)
.where(where)
.toString()
db.all(query, cb)
}
list (cb) {
const query.select()
.from(this._table)
.toString()
db.all(query, cb)
}
}
module.exports = new DB()