mongodb newlisp driver v0.1.0 发布
2014-11-30 17:46
204 查看
一直以来,没有newlisp直接访问mongodb 的方式,今天发布了v0.1.0版本,可以让newlisp通过mongdb c driver访问mongodb server.
下面是例子代码:
#!/usr/bin/newlisp
(load "mongo.lsp")
(mongo:init)
(set 'client-ptr (mongo:connect "mongodb://127.0.0.1/"))
(set 'db-ptr (mongo:get-db client-ptr "kaimei"))
(println "db-ptr: " db-ptr)
(set 'db-name (mongo:get-db-name db-ptr))
(println "db-name: " db-name)
(mongo:destroy-db db-ptr)
(mongo:destroy-client client-ptr)
(mongo:cleanup)
(exit)
项目已经在gitlab.com上开源,链接地址为:https://gitlab.com/newlisp/mongo-driver
目前支持的函数不多,后面会逐渐增加。
- ∂ -
generated with newLISP and newLISPdoc
下面是例子代码:
#!/usr/bin/newlisp
(load "mongo.lsp")
(mongo:init)
(set 'client-ptr (mongo:connect "mongodb://127.0.0.1/"))
(set 'db-ptr (mongo:get-db client-ptr "kaimei"))
(println "db-ptr: " db-ptr)
(set 'db-name (mongo:get-db-name db-ptr))
(println "db-name: " db-name)
(mongo:destroy-db db-ptr)
(mongo:destroy-client client-ptr)
(mongo:cleanup)
(exit)
项目已经在gitlab.com上开源,链接地址为:https://gitlab.com/newlisp/mongo-driver
目前支持的函数不多,后面会逐渐增加。
Index
Module: mongo
Release all resources associated with client and free the structure.init cleanup connect get-db get-db-name destroy-db destroy-client get-coll- ∂ -
generated with newLISP and newLISPdoc
相关文章推荐
- B3log Solo 0.1.0-preview2 发布了!
- B3log Solo 0.1.0 发布了!
- B3log Solo 0.1.0 发布了!
- MongoDB笔记二 - C Driver 添加修改和查询
- MongoDB 使用C++ driver 3.1.1 使用案例1
- mongodb java driver日期转换问题
- MongoDb Official Driver Get Collection Names
- gNewSense 3.0 Beta 2 发布
- MongoDB .NET Driver 1.1 Bug导致MongoDB拒绝连接
- EasyJF开源网上会议系统iula-0.1.0发布
- MongoDB 不断发展:发布 1.4 版本,10gen 提供商业支持
- 在windows下编译mongodb c driver
- MongoDB Node.JS Driver 1.4.9 documentation
- 浅析COleDispatchDriver Class(Ole发布驱动类)
- MongoDB 2.2.1发布
- newlisp HTTP Basic Authentication
- newlisp set 函数
- 给近三天(或当天)发布的文章显示红色日期或加上new字或new小图片等
- Legacy C++ MongoDB Driver
- B3log Solo 0.1.0-preview2 发布了!