@xuda.io/xuda-dbs-plugin-xuda 1.0.105 → 1.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/studio.mjs +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xuda.io/xuda-dbs-plugin-xuda",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.106",
|
4
4
|
"description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
|
5
5
|
"scripts": {
|
6
6
|
"pub": "npm version patch --force && npm publish --access public"
|
package/studio.mjs
CHANGED
@@ -1172,7 +1172,7 @@ export const create_design = async (params, resolve, reject) => {
|
|
1172
1172
|
views: {
|
1173
1173
|
db_index_reduce: {
|
1174
1174
|
map: 'function(doc) {\r\n if (doc.docType=="database" && doc.stat===3) {\r\n if (doc.udfIndex) {\r\n for (var i = 0; i < doc.udfIndex.length; i++)\r\n {\r\n var val = doc.udfIndex[i]; \r\n emit([val.fileId, val.indexId, val.keyValue],1);\r\n }\r\n }\r\n }\r\n \r\n}',
|
1175
|
-
reduce: "
|
1175
|
+
reduce: "function(keys, values) {\n return sum(values);\n}",
|
1176
1176
|
},
|
1177
1177
|
db_index: {
|
1178
1178
|
map: 'function(doc) {\r\n if (doc.docType=="database" && doc.stat===3) {\r\n if (doc.udfIndex) {\r\n for (var i = 0; i < doc.udfIndex.length; i++)\r\n {\r\n var val = doc.udfIndex[i]; \r\n emit([val.fileId, val.indexId, val.keyValue],{_id: doc._id});\r\n }\r\n }\r\n }\r\n \r\n}',
|
@@ -1180,7 +1180,7 @@ export const create_design = async (params, resolve, reject) => {
|
|
1180
1180
|
|
1181
1181
|
db_table_counts: {
|
1182
1182
|
map: 'function(doc) {\r\n\r\nif (doc.docType=="database" && doc.stat===3) {\r\n if(doc.udfData && doc.udfData.udffileid) \r\n emit(doc.udfData.udffileid, 1); \r\n }\r\n}',
|
1183
|
-
reduce: "
|
1183
|
+
reduce: "function(keys, values) {\n return sum(values);\n}",
|
1184
1184
|
},
|
1185
1185
|
stat_3_doc_counts: {
|
1186
1186
|
reduce: "_count",
|