NonSQL:在浏览器控制台中初始化DB -object? DB-逻辑在用户空间? [英] NonSQL: initialization of DB -object in browser console? DB -logic in the user-space?
问题描述
我正在尝试将逻辑从数据库移到非常高级的位置.从技术上讲,我正在寻找对事物的极端惰性评估.我觉得一些非sql -db是用于此目的的,因为在非sql db中看起来计算很昂贵,因此倾向于移至用户空间.所以
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?"
"by which NonSQL db I can initialize the DB -object in the user-space probably in things such as JavaScript/jQuery?"
试用
Trial 0: MongoDB, not possible according to this here.
试用版1: CouchDB,打开.
Trial 1: CouchDB, open.
jQcouch可能会起作用,更多此处, 但找不到源代码.那么我该如何初始化CouchDB 对象做一些简单的事情,例如
db.test.save('hello world')
浏览器控制台?
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?
推荐答案
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"
.
有关CouchDB的相关问题此处.
Related question about CouchDB here.
这篇关于NonSQL:在浏览器控制台中初始化DB -object? DB-逻辑在用户空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!