TDIing out loud, ok SDIing as well

Ramblings on the paradigm-shift that is TDI.

Monday, November 14, 2016

CouchDB/Cloudant Connector

Those of you who want to learn more about the truly marvellous concept of MapReduce (thanks, Google!) or just want to play with the can't-believe-it's-free CouchDB, here is a connector I wrote a while back that supports both CouchDB and Cloudant. All you need to do is download a free copy of CouchDB (painless install and loads of fun), or sign up for your free Cloudant db in the cloud at https://cloudant.com/sign-up/.

Not only is this component an example of how to script a fully functional Connector to work with a REST service, it also shows how you use the Forms Editor (Open With... in the CE) to create a custom Connection tab - even one that includes javascript to add functionality to the parameter form, like the Query button in this Connector that populates a drop-down with available databases.

And if you run an AL with the component in the Debugger, you can step through and set breakpoints in the Connector Script itself, giving you a bird's eye view of how it actually behaves in action.

This is an as-is component and can absolutely be improved on! Enjoy and let me know if you have questions or make any improvements that you want to share:

             CouchDB/Cloudant Connector - right-click and Save As.
                                                                 Then use File > Import in TDI to create your own
                                                                 CouchDB project. Contains a number of test ALs, although
                                                                 you will need to update parameters for your own DBs.
             Documentation for said component

Enjoy!

2 comments:

Stager999 said...

The links are not working anymore? Could you please update?

Eddie Hartman said...

@Stager999 the links have been updated. Thanks for letting me know about the break!