Skip to content

Commit 5140cf3

Browse files
committed
Unique keys, shard key, markdown, cleanup
1 parent b596e6c commit 5140cf3

File tree

9 files changed

+300
-221
lines changed

9 files changed

+300
-221
lines changed

adapter/0.1.12.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Copyright © 2016-2019 by IntegrIT S.A. dba Hackolade. All rights reserved.
3+
*
4+
* The copyright to the computer software herein is the property of IntegrIT S.A.
5+
* The software may be used and/or copied only with the written permission of
6+
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
7+
* the agreement/contract under which the software has been supplied.
8+
*
9+
* {
10+
* "add": {
11+
* "entity": [<names of new property>],
12+
* "container": [<names of new property>],
13+
* "model": [<names of new property>],
14+
* "view": [<names of new property>],
15+
* "field": {
16+
* "<type>": [<names of new property>]
17+
* }
18+
* },
19+
* "remove": {
20+
* "entity": [<names of new property>],
21+
* "container": [<names of new property>],
22+
* "model": [<names of new property>],
23+
* "view": [<names of new property>],
24+
* "field": {
25+
* "<type>": [<names of new property>]
26+
* }
27+
* },
28+
* "modify": {
29+
* "entity": [
30+
* {
31+
* "from": { <properties that identify record> },
32+
* "to": { <properties that need to be changed> }
33+
* }
34+
* ],
35+
* "container": [],
36+
* "model": [],
37+
* "view": [],
38+
* "field": []
39+
* },
40+
* }
41+
*/
42+
{
43+
"add": {
44+
},
45+
"modify": {
46+
"container": [{
47+
"from": {
48+
"partitionKey": {
49+
"type": "RegExp",
50+
"value": ".*"
51+
}
52+
},
53+
"to": {
54+
"shardKey": {
55+
"type": "Source",
56+
"path": "partitionKey"
57+
}
58+
}
59+
}]
60+
},
61+
"delete": {
62+
"container": [
63+
"partitionKey"
64+
]
65+
}
66+
}

package.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "CosmosDB-with-Mongo-API",
3-
"version": "0.1.11",
4-
"versionDate": "2019-03-03",
3+
"version": "0.1.12",
4+
"versionDate": "2019-05-17",
55
"author": "hackolade",
66
"engines": {
77
"hackolade": "1.10.x",
@@ -15,7 +15,37 @@
1515
]
1616
},
1717
"features": {
18-
"nestedCollections": false
18+
"nestedCollections": false,
19+
"forwardEngineering": {
20+
"jsonSchema": {
21+
"keepParentType": {
22+
"objectId": {
23+
"type": "string",
24+
"pattern": "^[a-fA-F0-9]{24}$"
25+
},
26+
"regex": "string",
27+
"date": {
28+
"type": "string",
29+
"format": "date-time"
30+
},
31+
"timestamp": {
32+
"type": "string",
33+
"format": "date-time"
34+
},
35+
"binary": {
36+
"type": "string",
37+
"mediaType": "image/png",
38+
"contentEncoding": "base64"
39+
},
40+
"JavaScript": "string",
41+
"JavaScript(w/scope)": "string",
42+
"symbol": "string",
43+
"minKey": "number",
44+
"maxKey": "number"
45+
}
46+
}
47+
},
48+
"enableReverseEngineering": true
1949
}
2050
},
2151
"description": "Hackolade plugin for Azure Cosmos DB with MongoDB API"

0 commit comments

Comments
 (0)