couchdb

Couchdb Logging

心不动则不痛 提交于 2020-01-25 12:23:09
问题 Due to application requirements, I have an externally accessible CouchDB instance. I would like to see what IP addresses are attempting to authenticate with my database. By checking the couchdb.log file, I can see failed authentication attempts. They look similar to this. [Mon, 29 Sep 2014 13:43:32 GMT] [info] [<0.28472.7>] 127.0.0.1 - - GET /offline_master/ 401 However, no matter where I connect from, it seems that the IP address that is logged is always 127.0.0.1. Am I mis-understanding how

Couchdb Logging

会有一股神秘感。 提交于 2020-01-25 12:22:06
问题 Due to application requirements, I have an externally accessible CouchDB instance. I would like to see what IP addresses are attempting to authenticate with my database. By checking the couchdb.log file, I can see failed authentication attempts. They look similar to this. [Mon, 29 Sep 2014 13:43:32 GMT] [info] [<0.28472.7>] 127.0.0.1 - - GET /offline_master/ 401 However, no matter where I connect from, it seems that the IP address that is logged is always 127.0.0.1. Am I mis-understanding how

Couchdb Logging

℡╲_俬逩灬. 提交于 2020-01-25 12:21:28
问题 Due to application requirements, I have an externally accessible CouchDB instance. I would like to see what IP addresses are attempting to authenticate with my database. By checking the couchdb.log file, I can see failed authentication attempts. They look similar to this. [Mon, 29 Sep 2014 13:43:32 GMT] [info] [<0.28472.7>] 127.0.0.1 - - GET /offline_master/ 401 However, no matter where I connect from, it seems that the IP address that is logged is always 127.0.0.1. Am I mis-understanding how

_users database does not exist

a 夏天 提交于 2020-01-25 09:51:11
问题 I've cloned some guy's web app and am trying to run the .js script they provided to extract data from a database. While I can run the project as a whole without a hitch, this particular script produces an error: { CouchError: not_found: Database does not exist. at Request._onResponse [as _callback] (c:\Users\bzlis\Documents\coup\node_modules\cradle\lib\cradle.js:241:29) at Request.self.callback (c:\Users\bzlis\Documents\coup\node_modules\request\request.js:185:22) at emitTwo (events.js:126:13

Include design documents factoryng

…衆ロ難τιáo~ 提交于 2020-01-25 09:04:30
问题 The default settings in factoryng filter out design documents. How can I include these design documents? 回答1: You can define this via the properties() method, e.g.: var tasks = new Pouchyng('tasks', 'http://localhost:5984', yngutils.ASC); var config = { opts: { filter: function (doc) { return true; } } }; tasks.properties({ changes: config, to: config, from: config }); 来源: https://stackoverflow.com/questions/26436821/include-design-documents-factoryng

Include design documents factoryng

白昼怎懂夜的黑 提交于 2020-01-25 09:04:12
问题 The default settings in factoryng filter out design documents. How can I include these design documents? 回答1: You can define this via the properties() method, e.g.: var tasks = new Pouchyng('tasks', 'http://localhost:5984', yngutils.ASC); var config = { opts: { filter: function (doc) { return true; } } }; tasks.properties({ changes: config, to: config, from: config }); 来源: https://stackoverflow.com/questions/26436821/include-design-documents-factoryng

Does CouchDB's group=true prevent rereduce?

a 夏天 提交于 2020-01-25 02:29:28
问题 CouchDB's map functions emit key/value pairs: function(doc) { emit(doc.date, 1); } Potentially, there could be many key/value pairs with the same key. Setting group=true while querying a view groups key/value pairs with the same key into the same reduce: function(keys, values, rereduce) { return sum(values); } Does this mean that with group=true (or for any group_level > 0), there will be exactly one reduce per key ? Or does the grouping only guarantee that all reduces will have homogeneous

Cloudant Selector Query for fetching particular elements inside Array

放肆的年华 提交于 2020-01-24 22:59:08
问题 I have the below requirement. In the below array elements I have to select and compare the value of LoanAmount. In the previous posts, the below solutions are mentioned. { "_id": "65c5e4c917781f7365f4d814f6e1665f", "_rev": "2-73615006996721fef9507c2d1dacd184", "userprofile": { "name": "tom", "age": 30, "employer": "Microsoft" }, "loansBorrowed": [{"loanamount": 5000, "loandate": "01/01/2001", "repaymentdate": "01/01/2001", "rateofinterest": 5.6, "activeStatus": true, "penalty": { "penalty

Angular $resource doesn't change method

别来无恙 提交于 2020-01-24 19:46:26
问题 I'm trying to configure a simple service with Angular.js and Couchdb var App = angular.module('myapp', ['ngResource'], function(){}); App.factory('products', ['$resource', function($resource) { var Products = $resource( 'http://localhost\\:5984/products/_all_docs', {}, { all: { method: 'GET'} } ); return { all: function() { return Products.all(); } }; }]); When I call products.all() from my controller always I get Request headers OPTIONS /productos/_all_docs HTTP/1.1 Host: localhost:5984

CouchDB and Python: how to use “_show” and “_list” functions?

喜欢而已 提交于 2020-01-24 17:32:29
问题 The python-couchdb package ( used as import couchdb ) provides a db.view() function to access a couchdb "_view" , but how do you access a "_show" or "_list" function? 回答1: I just added show/list support to couchdb-python. Any problems, please use the mailing list. 来源: https://stackoverflow.com/questions/5491851/couchdb-and-python-how-to-use-show-and-list-functions