开源软件名称(OpenSource Name):cloudwu/lua-bson开源软件地址(OpenSource Url):https://github.com/cloudwu/lua-bson开源编程语言(OpenSource Language):C 91.4%开源软件介绍(OpenSource Introduction):IntroductionThis is a simple BSON library for Lua. Building
or
Types
Convert a bson value to lua stringA value with bson type Null,Binary,MinKey,Maxkey,etc would be encoded in lua, you can use bson.type(v) to convent back to normal lua string. typestring, value = bson.type(bson.binary("Hello"))
assert(typestring == "binary")
assert(value == "Hello") Replace fieldThese bson types (fixed length) below can be replace by new value after encode to bson object.
You need call makeindex() before replace. Getting startedSee test.lua |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论