mirror of
https://github.com/YuhangQ/InvoDB.git
synced 2025-01-27 15:10:57 +00:00
24 lines
517 B
JavaScript
24 lines
517 B
JavaScript
|
|
const fs = require('fs')
|
|
|
|
const invodb = require('..')
|
|
|
|
invodb.database('zzz.invodb')
|
|
|
|
let col = invodb.colection('blog')
|
|
if(!col.exist()) col.create();
|
|
|
|
// for(let json of col.query({})) col.remove(json)
|
|
|
|
// let list = fs.readFileSync(__dirname + "/list.txt").toString().split("\n")
|
|
// for(let json of list) {
|
|
// col.insert(JSON.parse(json))
|
|
// }
|
|
|
|
let result = col.query({
|
|
__INVO_ID__: 'oev3yzmydgdvtxg82zbzmrl6gbu73ax7'
|
|
})
|
|
|
|
console.log(">>>>>>>>>>>>>>>>>>>>")
|
|
console.log(result)
|
|
console.log(result.length) |