GithubHelp home page GithubHelp logo

jonike / mongo-c-driver-legacy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 10gen-archive/mongo-c-driver-legacy

0.0 3.0 0.0 5.52 MB

C Driver for MongoDB

Home Page: http://www.mongodb.org/

License: Apache License 2.0

Makefile 1.78% Python 2.32% Shell 0.29% C 95.37% C++ 0.24%

mongo-c-driver-legacy's Introduction

MongoDB C Driver

Important note - please see HISTORY.md for API changes.

This is then 10gen-supported MongoDB C driver. There are two goals for this driver. The first is to provide a strict, default compilation option for ultimate portability, no dependencies, and generic embeddability.

The second is to support more advanced, platform-specific features, like socket timeout, by providing an interface for platform-specific modules.

Until the 1.0 release, this driver should be considered alpha. Keep in mind that the API will be in flux until then.

Documentation

Documentation exists in the project's docs folder. You can read the latest docs online at (http://api.mongodb.org/c/current/).

The docs are built using Sphinx and Doxygen. If you have these tools installed, then you can build the docs with scons:

scons docs

The html docs will appear in docs/html.

Building

First check out the version you want to build. Always build from a particular tag, since HEAD may be a work in progress. For example, to build version 0.8, run:

git checkout v0.8

You can then build the driver with scons:

scons

For more build options, see the docs.

Running the tests

Make sure that you're running mongod on 127.0.0.1 on the default port (27017). The replica set test assumes a replica set with at least three nodes running at 127.0.0.1 and starting at port 30000. Note that the driver does not recognize 'localhost' as a valid host name.

To compile and run the tests:

scons test

Error Handling

Most functions return MONGO_OK or BSON_OK on success and MONGO_ERROR or BSON_ERROR on failure. Specific error codes and error strings are then stored in the err and errstr fields of the mongo objects the err field of the bson objects. It is the client's responsibility to check for errors and handle them appropriately.

ISSUES

You can report bugs, request new features, and view this driver's roadmap using JIRA.

CREDITS

  • Kyle Banker - development through version 0.6.
  • Gergely Nagy - Non-null-terminated string support.
  • Josh Rotenberg - Initial Doxygen setup and a significant chunk of documentation.

LICENSE

Unless otherwise specified in a source file, sources in this repository are published under the terms of the Apache License version 2.0, a copy of which is in this repository in the file named LICENSE.

mongo-c-driver-legacy's People

Contributors

algernon avatar asya999 avatar banker avatar bspaeth avatar davidcrawford avatar erh avatar geoghegan avatar gerald-lindsly avatar gjmurakami-10gen avatar jjchoy avatar jonatanrs avatar joshrotenberg avatar kballenegger avatar kiwanami avatar kronuz avatar l-korous avatar lynxluna avatar madevgeny avatar mdirolf avatar newkedison avatar octo avatar paulmelnikow avatar redbeard0531 avatar reflection avatar sam-github avatar soarqin avatar timburks avatar tzusman avatar z00b avatar zhemao avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.