Giter VIP home page Giter VIP logo

mongocfc's Introduction

MongoCFC

MongoCFC (for lack of a better name) models the Mongo Shell JavaScript API as close as possible, so you don't have to learn twice! Just replace : with = and you're good to go!

e.g.

JS: db.people.update({name:'Joe'},{$inc:{n:1}});

CF: people.update({'name'='Joe'},{$inc:{'n'=1}});

Dependency: Official MongoDB Java driver

Installation

  1. Install MongoDB: http://www.mongodb.org/display/DOCS/Quickstart
  2. Download MongoDB Java Driver: https://github.com/mongodb/mongo-java-driver/downloads
  3. Move .jar into #web_root#/WEB-INF/lib
  4. restart your CF.
  5. run demo/gettingstarted.cfm

NOTE 1: CF's struct keys are stored in UPPERCASE by default. However, MongoCFC will convert _id and all modifier operators (e.g. $set and $inc) into the correct case. To use mixed/lowercase, quotes the key like the example above.

NOTE 2: CF's struct does not preserve insertion order. When specifying multiple index or sort columns, use util.orderedStructNew() or exception will be thrown.

See demo/gettingstarted.cfm and compare to the other excellent project CFMongoDB at: http://cfmongodb.riaforge.org/

Requirements

ColdFusion 9.0.1+

mongocfc's People

Contributors

henrylearn2rock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mongocfc's Issues

com.mongodb.ServerAddress

Hi,

Any ideas on how to create com.mongodb.ServerAddress arrays?

/**
@replicaSetSeeds Array of com.mongodb.ServerAddress
*/

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.