0.0.4 • Published 7 years ago

mglastone v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

MGLastOne

功能

获取MongoDb中Collection的最后一个id值, 自增. MongoDb本身自带的_id用的是uuid, 运算成本太高了, 非常不实用, 所以用这个替代.

用法

var mg = require('mglastone')

mg.MGConfig('mongodb://localhost:1700/MGLastOne')

mg.MGLastOneAsync('aaa')
    .then(function(m) {
        console.log(m)
    })
    .catch(function(error) {
        console.log(error)
    })

安装

npm install mglastone
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago