NonSQL: initialization of DB -object in browser console? DB -logic in the user-space?

放肆的年华 提交于 2019-12-29 08:28:57

问题


I am trying to move the logic to the very high-level from the db. Technically, I am looking for extremely lazy-evaluation of things. I feel some non-sql -db is for this purpose because it looks like the computation is expensive in non-sql db and hence tend to be moved to the userspace. So

"by which NonSQL db I can initialize the DB -object in the user-space probably in things such as JavaScript/jQuery?"

TRIALS

Trial 0: MongoDB, not possible according to this here.

Trial 1: CouchDB, open.

jQcouch may work, more here, but cannot find the source code. So how can I initialize the couchDB object to do something simple as db.test.save('hello world') in the Browser console?


回答1:


The code jquery.couch.js of Futon is well-documented here. You can see source code after installation of CouchDB for example with Ubuntu just $ sudo apt-get install couchdb:

"http://127.0.0.1:5984/_utils/script/jquery.couch.js".

Related question about CouchDB here.



来源:https://stackoverflow.com/questions/11060894/nonsql-initialization-of-db-object-in-browser-console-db-logic-in-the-user-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!