DESCRIPTION:It's lightweight library to communicate with couchdb. It has no dependances so you take care with the result JSON. With this library you can fake delete, put, update documents. It's using build in couchdb HTTP bulk docs api. WHAT YOU CAN DO:You can use it with pure flash as3 or with flex framework in flash, flex projects. FEATURES:- update documents from DB
- delete documents from DB
- add documents to the DB
- POST, GET command
- replicate
- genereate uuids
- compact
- request DB changes feed
EXAMPLES ARE IN TODOYou can clone the repository. Also You can load the preview of the swc (AS3Relax-0.1.zip) with working features or all_in_one-0.1.zip file with swc, asdocs, source code. LIMITATIONS:The library doesn't support true DELETE, HEAD, PUT api it uses only build in CouchDB HTTP_BULK_DOCS_API. The HTTPResponseStatus codes doesn't work in all browsers well that sucks so you cannot get response message But you can always check the changes using database changes feed api. TODO:Fix known and unknown bugs :) Create unit tests Add couchdb.js ajax support within ExternalInterface Add Sequential request to CouchDB support Add AIR version with full REST api support Improve documentation have fun :) you don't like it catch me at: michal (at) vane (dot) pl Update 8 March 2010decided to try as3httpclientlib after I do examples ^^ Update 29 October 2011crossdomain.xml couchdb issue thread link: https://issues.apache.org/jira/browse/COUCHDB-867 and the Joel Reed fix so you can compile couchdb and use it from webbrowser with this library: https://github.com/joelwreed/couchdb/commit/528c52e6517b777f22fee0ab7fb0f7977c4c05c2 The plans are to rewrite this library using socket progress events and native json cause flashplayer 11 support it and it's release version now.
|