Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node-couchdb-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sachinda
node-couchdb-management
Commits
e52d4a17
Commit
e52d4a17
authored
Sep 04, 2020
by
Sachinda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last version
parent
b9ee4ac0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
2 deletions
+66
-2
README.md
README.md
+3
-1
config.js
config.js
+62
-0
package.json
package.json
+1
-1
No files found.
README.md
View file @
e52d4a17
CouchDB databse management
\ No newline at end of file
CouchDB databse management
sample configuration file 'config.js'
\ No newline at end of file
config.js
0 → 100644
View file @
e52d4a17
module
.
exports
=
[{
"user_name"
:
"prodsupp_root"
,
"password"
:
"3a2riAMMA0b39ejBrKzHYr1Og8xOt9g8"
,
"service_url"
:
"vg_prodsupp_couchdb"
,
"service_port"
:
5984
,
"db_name"
:
"hellow"
},
{
"user_name"
:
"prodsupp_root"
,
"password"
:
"3a2riAMMA0b39ejBrKzHYr1Og8xOt9g8"
,
"service_url"
:
"vg_prodsupp_couchdb"
,
"service_port"
:
5984
,
"db_name"
:
"_users"
},
{
"user_name"
:
"prodsupp_root"
,
"password"
:
"3a2riAMMA0b39ejBrKzHYr1Og8xOt9g8"
,
"service_url"
:
"vg_prodsupp_couchdb"
,
"service_port"
:
5984
,
"db_name"
:
"hello"
,
"view_document"
:
{
"_id"
:
"_design/viewModel_views"
,
"views"
:
{
"activeStatusCount"
:
{
"map"
:
"function (doc) {
\n
if(typeof(doc.active_status) === 'boolean'){
\n
emit([doc.active_status], 1)
\n
}
\n
}"
,
"reduce"
:
"_count"
}
},
"updates"
:
{
"add_update"
:
"function(doc, req){ var reqb = JSON.parse(req.body); if (!doc){ return[ reqb, 'NEW DOC']; } else { reqb['_rev'] = doc['_rev']; return [reqb, 'UPDATE DOC'] }}"
},
"language"
:
"javascript"
},
"index_document"
:
{
"_id"
:
"_design/indexes"
,
"language"
:
"query"
,
"views"
:
{
"position"
:
{
"map"
:
{
"fields"
:
{
"position"
:
"desc "
},
"partial_filter_selector"
:
{}
},
"reduce"
:
"_count"
,
"options"
:
{
"def"
:
{
"fields"
:
[
"position"
]
}
}
}
}
},
"update_handler"
:
{
"_id"
:
"_design/handler"
,
"updates"
:
{
"handler"
:
"function(doc, req){ var reqb = JSON.parse(req.body); if (!doc){ var newDoc = { _id:req.uuid, type: reqb.type, origin_id: reqb.origin_id, locale: reqb.locale, values_translation: reqb.values_translation}; return[ newDoc, 'NEW DOC']; } else { return [reqb, 'UPDATE DOC'] } }"
},
"language"
:
"javascript"
}
}
]
\ No newline at end of file
package.json
View file @
e52d4a17
{
"name"
:
"@cou
tch_db_create/cout
ch_db_create"
,
"name"
:
"@cou
ch_db_create/cou
ch_db_create"
,
"version"
:
"1.0.0"
,
"description"
:
"ls -l"
,
"main"
:
"index.js"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment