Permalink
Browse files

add readme

  • Loading branch information...
1 parent 80fa080 commit c13263a2b40e0201948ebf90da89a551f2aa92e9 bill shelton committed May 19, 2010
Showing with 53 additions and 0 deletions.
  1. BIN .README.textile.swp
  2. +26 −0 README.textile
  3. +8 −0 test/fixture/SomeCFCWithORMProperties.cfc
  4. +19 −0 test/rd/DocTest.cfc
View
Binary file not shown.
View
@@ -0,0 +1,26 @@
+h1. CFMongoDB
+
+CFMongoDB is both partial wrapper for the MongoDB Java driver and a document-object mapper. Additionally, there's a simple DSL which provides ColdFusion developers the ability to easily Mongo documents.
+
+One of the most appealing aspects is that data can be created as a ColdFusion structure and persisted almost verbatir. Example:
+
+<pre>
+<cfscript>
+my_struct = {
+ foo = 'bar'
+ bar = 123
+};
+
+mongo.save(my_struct);
+</cfscript>
+</pre>
+
+Check out the wiki for additional info : "http://wiki.github.com/virtix/cfmongodb/":http://wiki.github.com/virtix/cfmongodb/
+
+
+Collaboration is welcome.
+
+
+
+
+
@@ -0,0 +1,8 @@
+<cfcomponent output="true">
+
+ <cfproperty name="name" default="bill" />
+ <cfproperty name="address" persistent="true" />
+ <cfproperty name="city" persistent="true" />
+
+
+</cfcomponent>
View
@@ -0,0 +1,19 @@
+<cfcomponent output="false" extends="mxunit.framework.TestCase">
+<cfscript>
+ //mongo = createObject('component','cfmongodb.test.fixture.').init();
+
+
+ function testCFProps(){
+ doc = createObject('component','cfmongodb.test.fixture.SomeCFCWithORMProperties');
+
+ doc.name = 'mongo';
+
+ //debug( doc.properties );
+ debug( getMetadata(doc));
+ }
+
+
+ </cfscript>
+
+
+</cfcomponent>

0 comments on commit c13263a

Please sign in to comment.