Push dev work to master #2
|
@ -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()
|
Loading…
Reference in New Issue