mongo bson
#2090
Replies: 2 comments
-
|
一定要的话,你可以给 {} 加一个元表,里面提供一个 如果你编码出一次 [] ,编码结果可以缓存住,插入到你需要 [] 的任何地方。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
配合 schema 使用可以解决数据是 {} 还是 [] 问题。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
插入的时候是空table {},看了lua-bson.c,和skynet.db.mongo,都是默认当doc {}处理,我想要的是[]处理怎么办呢?
有什么方法能解决。
Beta Was this translation helpful? Give feedback.
All reactions