abhi62003 / relax-net

Automatically exported from code.google.com/p/relax-net
GNU General Public License v3.0
0 stars 0 forks source link

Programatically insert/save design documents. #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have a text file for my design documents because I create many different 
repositories but want to have some reused design documents for map/reduce.  Is 
there a way for me to load these in programatically?  
I have tried to create a session object and call .Save and .SaveRaw but that 
does not seem to get me where I need.
2.
My text design document would look something like this:
{
   "_id": "_design/jobs",
   "language": "javascript",
   "views": {
       "messages": {
           "map": "function(doc){var line = doc.Message; emit('serial',line);}"
       }
}

What version of the product are you using? On what operating system?
{"couchdb":"Welcome","uuid":"838770450ea209728661e119692c3ba1","version":"1.3.0"
,"vendor":{"version":"1.3.0","name":"The Apache Software Foundation"}}

Original issue reported on code.google.com by 808numb...@gmail.com on 22 Apr 2014 at 9:16