11 lines
188 B
JavaScript
11 lines
188 B
JavaScript
|
import db from 'nedb-promises'
|
||
|
|
||
|
const dbfile = 'example/history.db'
|
||
|
|
||
|
const history = db.create(dbfile)
|
||
|
|
||
|
;
|
||
|
(async function () {
|
||
|
console.log(await history.find({ time: { $gt: 1 } }))
|
||
|
})()
|