“PouchDB is an in-browser database that allows applications to save data locally, so that users can enjoy all the features of an app even when they’re offline. Plus, the data is synchronized between clients, so users can stay up-to-date wherever they go.”
In order to wrap this call I can do this:
Much nicer. The user of your API can now create a new PouchDB and will receive a beautiful type save Java Object:
So let’s see what else the PouchDB API has… The tutorial stores a message like this:
Let’s convert it to a Java API:
You can now call the API like this:
If you’re interested in having such an API or helping, let us know. This is a great chance to get some in depth knowledge about DukeScript. And in case you need this right now, but have no time, be a sponsor and bribe us to put it on top of our todo list ;-).
If you just want to play with it, do so here.