Run and Deploy SAP CAP (Java) with PostgreSQL using Official Database Adapter @cap-js/postgres
The post that records a handover. The author's earlier writing relied on the community projects cds-pgcds-pgA PostgreSQL adapter for SAP CDS, built by the SAP Mentors community, which gave CAP a Postgres persistence option years before @cap-js/postgres shipped.independent, cap and cds-dbmcds-dbmA delta deployment and migration tool for CAP on PostgreSQL that diffs the live schema against a reference schema with Liquibase and applies the change, never dropping tables by default.independent, cap; this one states that both were deprecated in favour of the official PostgreSQLPostgreSQLA relational database. For CAP it is the production database when the answer is not HANA, reached through an adapter that translates CDS queries into its SQL. support arriving with @sap/cds@sap/cdsThe CAP Node.js runtime, which compiles the CDS model, serves the services declared in it, answers generic requests before any handler runs, and loads every cds-plugin.sap official, cap 7, and rewrites the path around @cap-js/postgres. For CAP Java it takes a different route to the initial schema.sql than the Node.js case, and it is candid that automatic schema deployment is convenient but not always what you want. Dated evidence for why two artifacts here went quiet.
Where it sits
Who is behind it
Before you read it
read from the pageApplicabilityVersion driftcds 7, line ended
The piece names the version it was written against, and that line has since been crossed by a breaking one. The steps may need translating; nothing here says which.
Properties
About this work
What was found on the page
For database-connectors
Details
Graph
Source
History
- explains → applies_to on capability:database-connectorsDoor scope derived from the artifacts this piece also explains, so a door page lists it only where it holds (docs/concepts/content-on-doors.md).
- Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
- Ref
content:run-and-deploy-cap-java-with-postgresql-using-cap-js-postgres- JSON
- /content/run-and-deploy-cap-java-with-postgresql-using-cap-js-postgres.json
- MCP
- Connecting an agent