MongoDB newLISP driver v0.1.0 released

Source: Internet
Author: User
Tags mongodb server



All along, no newlisp direct access to MongoDB, today released the v0.1.0 version, you can let newLISP through MONGDB C driver access to MongoDB server.



Here is the example code:





#!/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)


The project has been open source on gitlab.com, the link address is: https://gitlab.com/newlisp/mongo-driver






Currently, there are not many functions supported, and the latter will gradually increase.








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


MongoDB newLISP driver v0.1.0 released


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.