on 2024 Jun 23 10:13 PM
Hi Community,
I'm building a new CAP application with Postgres this time. I'm trying to setup Hybrid testing which was successful for the destination instance, but not for the Postgres instance.
cds bind -2 postgre-sql
Unknown CDS service name for service postgre-sql. Please specify as argument for cds bind.I have tried a couple of different CDS bind commands and some of them actually generate an addition to my .cdsrc-private.json. However when using the cds watch --profile hybrid - command, I don't see my postgres data from BTP in my application.
Any ideas?
Thanks!
Kind Regards, Jorre Vynckier
Request clarification before answering.
Try to specify the actual service name as an argument.
If your service on BTP is named my-pg-db, your command would look like:
cds bind -2 my-pg-db postgresql-db
=> postgresql-db being the service technical name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! This does actually generate extra code inside .cdsrc-private.json, but I unfortunately still don't see my data from Postgres on BTP while I locally test using hybrid testing. The destination does work.
{
"requires": {
"[hybrid]": {
"destinations": {
"binding": {
"type": "cf",
"apiEndpoint": "https://anon.hana.ondemand.com",
"org": "Anon Org",
"space": "AN",
"instance": "references-destination",
"key": "references-destination-key",
"resolved": false
},
"kind": "destinations",
"vcap": {
"name": "destinations"
}
},
"postgresql-db": {
"binding": {
"type": "cf",
"apiEndpoint": "https://anon.hana.ondemand.com",
"org": "Anon Org",
"space": "AN",
"instance": "postgre-sql",
"key": "postgre-sql-key",
"resolved": false
},
"kind": "postgres",
"vcap": {
"name": "postgresql-db"
}
}
}
}
}
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.