
pip install diadmin>=0.0.72
dicatalog connections <json-file> --upload
PWD: pwd123
TENANT: default
URL: https://vsystem.ingress.xxx.shoot.live.k8s-hana.ondemand.com
USER: user
{
"id": "COUCHDB_IMPORT",
"description": "CouchDB Metadata Import",
"type": "METADATA_IMPORT",
"contentData": {
"type": "METADATA_IMPORT"
},
"tags": [
"import"
],
"gatewayId": "",
"cloudConnectorLocationId": "",
"licenseRelevant": false,
"readOnly": true
}
dicatalog connections <connection_id> --remove
dicatalog connections all --download
dicatalog datasets <json-file> --upload
[
{
"remoteObjectReference": {
"qualifiedName": "/visits",
"remoteObjectType": "VIEW",
"connection": {
"id": "COUCHDB_IMPORT",
"type": "METADATA_IMPORT"
},
"name": "visits",
"size": 2345789
},
"schema": {
"genericType": "TABLE",
"tableBasedRepresentation": {
"attributes": [
{
"name": "KEY",
"datatype": "STRING",
"templateType": "string",
"length": 50,
"labelAttribute": "String"
},
{
"name": "LOCATIONID",
"datatype": "STRING",
"templateType": "string",
"length": 30,
"labelAttribute": "String"
},
{
"name": "VISITID",
"datatype": "STRING",
"templateType": "string",
"length": 30,
"labelAttribute": "string"
},
{
"name": "TIMESTAMP",
"datatype": "DATETIME",
"templateType": "timestamp",
"labelAttribute": "DateTime"
},
{
"name": "YEAROFBIRTH",
"datatype": "INTEGER",
"templateType": "int16",
"labelAttribute": "Integer"
}
],
"uniqueKeys": [
{
"attributeReferences": [
"KEY"
]
}
]
}
},
"descriptions": [
{
"value": "CouchDB Visits",
"type": "SHORT",
"origin": "REMOTE"
}
]
},
{
"remoteObjectReference": {
"qualifiedName": "/booking",
"remoteObjectType": "VIEW",
"size": 73923,
"connection": {
"id": "COUCHDB_IMPORT",
"type": "METADATA_IMPORT"
}
},
"schema": {
"genericType": "TABLE",
"tableBasedRepresentation": {
"attributes": [
{
"qualifiedName": "timestamp",
"name": "timestamp",
"datatype": "DATETIME",
"templateType": "timestamp"
},
{
"qualifiedName": "location_id",
"name": "location_id",
"datatype": "STRING",
"templateType": "string"
},
{
"qualifiedName": "name",
"name": "name",
"datatype": "STRING",
"templateType": "string"
},
{
"qualifiedName": "booking_time",
"name": "booking_time",
"datatype": "DATETIME",
"templateType": "timestamp"
}
]
}
},
"descriptions": [
{
"value": "CouchDB Booking",
"type": "SHORT",
"origin": "REMOTE"
}
]
}
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
17 | |
16 | |
11 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |