Hi, it's Cyril here, I'm a music-driven web developer and currently focusing on Golang and React.
Welcome get in touch with me at [email protected].
MongoDB Driver for Luvit lang
License: MIT License
Hi, it's Cyril here, I'm a music-driven web developer and currently focusing on Golang and React.
Welcome get in touch with me at [email protected].
一个循环一次插入50个文档,然后提示错误了。测试代码是
for i = 1,50 do
local insert = {
uid = math.floor(math.random(1000)),
bean = math.floor(math.random(1000))
}
mongo:insert("Leaderboard", insert, nil, function(err, res)
print('insert Leaderboard complete')
end)
堆栈报错是
Uncaught Error: [string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:18: Unable to read enough characters
stack traceback:
[C]: in function 'assert'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:18: in function <[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:13>
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:68: in function 'parseMsgHeader'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:233: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
[string "/Users/liuyuntao/work/shengjiserver/deps/luvi..."]:247: in function '_onData'
The title explains it all.
https://luvit.io/lit.html
https://github.com/luvit/lit/wiki/Creating-Your-First-Package
i reference the mongodb's c driver,query the collection's count,can use the 'count' command,but in your driver use the query and get the length of the documents for this,maybe this is a performance problem
朋友 空的时候把最新代码发布一下吧 😁
Like explained here https://github.com/creationix/redis-luvit#usage
Doesn't seem to work with luvit 2.0
it's proyect dead?
hi,我现在使用的是 $orderby来做的排序,但mongodb的文档上写的是
Deprecated since version 3.2: The $orderby operator is deprecated. Use cursor.sort() instead.
我们使用的 mongodb是2.6,所以目前还能获取到排好序的数据,但是我看你们的 cursor 没有提供sort的操作。是不是有其他地方可以使用?
你好
目前直接使用find的时候 limit传Nil的时候只会返回101个,有没有像其他驱动那种,返回一个游标,查询一个然后next 一下。直到把数据全部读取完的那种模式呢?
在 windows平台上使用这个驱动,在objectId.lua的46行,获取pid 不能工作
当插入一个文档里面包含 0,的时候,会插入一个非数字的值进去,比如 insert {a = 0}
你好,目前遇到能正常插入一个负数,但是读取的时候,读出来的是一个无符号整数的问题
请问这个驱动,支持同时创建N个连接对象吗?然后我上层动态的选取连接对象来做数据库操作
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.