BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

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-pg and cds-dbm; this one states that both were deprecated in favour of the official PostgreSQL support arriving with @sap/cds 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

Explains
@cap-js/postgresCAP@cap-js/postgrescds-pluginThe [PostgreSQL](external:postgresql) database service — the production option for running CAP off HANA, sharing the base service with the other three.cds-dbmCAPcds-dbmbuild-toolA 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.cds-pgCAPcds-pgcds-pluginA [PostgreSQL](external:postgresql) adapter for SAP CDS, built by the SAP Mentors community, which gave CAP a Postgres persistence option years before [@cap-js/postgres](artifact:cap-js-postgres) shipped.Database connectorsCAPDatabase connectorscapabilityConnecting an application’s data model and queries to a database, including the differences in supported queries, types and schema management between database implementations. Changing an existing schema belongs to [schema evolution](capability:schema-evolution).
Since then
cds-dbm is archived. Its last release was 2023-03-10
Source
reachable

Who is behind it

shanthakumar_krishnaswamyauthor

Before you read it

read from the page
ApplicabilityVersion 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

declared and crawled
Published
declared
Published on
declared
Views
crawled
4,784

What was found on the page

derived
Prose
derived
1,968 words
Numbered steps
derived
38
Code blocks
derived
26
Repository links
derived
3

For database-connectors

on the edge
Applies in
authored
cap

More on this51

Group by51 of 51 pieces
Piece, what it offersStill applies
Also explainingDatabase connectors51
CAP Foundry: Engineering SAP CAP Applications from Business Intent with Guardrailed AI
SAP Community, Shahid
nothing recorded
Connect SAP CAP (Node.js) to On-Premise/Private PostgreSQL using SAP Cloud Connector
SAP Community, KalaikovanThe reasoningA recipe
Core changed
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-4]
SAP Community, sanjucsThe reasoningA recipe
Core changed
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-3]
SAP Community, sanjucsThe reasoning
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-1]
SAP Community, sanjucsThe reasoningA recipeRunnable code
Core changed
Building a CAP App with Fiori Integration – Part 1: Environment & HANA Cloud Setup
SAP Community, SuryaRamesh, part 1 of 2The reasoning
nothing recorded
SAP CAP on HANA XSA: Scaling Industrial Data Applications Beyond the Cloud
SAP Community, rgadirovThe reasoningRunnable code
Core changed
Part 2: Creating and Deploying a CAP Application with PostgreSQL, Hyperscaler Option
SAP Community, yashbhosle789, part 2 of 2The reasoningA recipe
Core changed
Part 1: Creating and Deploying a SAP CAP Application with SAP HANA on SAP BTP (Cloud Foundry)
SAP Community, yashbhosle789, part 1 of 2The reasoningA recipe
Core changed
Create a CAP Application with SAP HANA Cloud from Scratch and Deploy to Cloud Foundry
SAP Community, MaheshSirsat1708The reasoningA recipe
Core changed
Creating a Hybrid CAP (Node.js) Profile with PostgreSQL on BTP from Business Application Studio
SAP Community, valentincadartThe reasoningRunnable code
Core changed
Lets Talk to the Database - CAP & SQLite Powered by Google Gemini-2.5-Pro
SAP Community, ShivamShuklaSAPThe reasoning
nothing recorded
SAP CAP With Prostgres Serice in BTP
SAP Community, satya-dev
nothing recorded
Using HANA Cloud’s "VECTOR_EMBEDDING" Function in CAP
SAP Community, Mio YasutakeThe reasoningRunnable code
nothing recorded
SAP CAP Lessons Learned: SQLite is single threaded, HANA is not
SAP Community, LucasMagriniRigo
nothing recorded
SAP CAP Lessons Learned: Run a CAP app using SQLite on SAP BTP - Cloud Foundry
SAP Community, LucasMagriniRigoThe reasoning
nothing recorded
Configure an SAP CAP Application to Connect to an SAP HANA Cloud Database in Another Global Account or Subaccount
SAP Community, JhoelAnthonyRamosRomeroPEThe reasoning
nothing recorded
SQLite as database for a multi-target (/productive) CAP Application
SAP Community, Christopher_KetzlerThe reasoningA recipeRunnable code
Core changed
Using Postgresql Database in Cloud Application Programming model
SAP Community, Arun KrishnamoorthyThe reasoningA recipeRunnable code
Core changed
Sharing SAP HANA Cloud instance to multiple subaccounts and creating HDI containers
SAP Community, Kazuhiko TakataThe reasoningRunnable code
Core changed
2024/01最新版!Productivity Toolsを使ったCAPバックエンド開発②~HANA Cloud編~
SAP Community, takayuki_tanakaA recipe
Core changed
CAP PostgreSql setup local debugging using Docker - Part 2
SAP Community, ramonlee5A recipe
Core changed
CAP with PostgreSQL DB alternate to HANA Cloud DB - Part 1
SAP Community, ramonlee5The reasoning
nothing recorded
Open Sourcing CAP – how to learn more or get involved
SAP Community, Fempel
nothing recorded
SAP CAP (Java) with Amazon Aurora PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
SAP CAP (Java) with Azure Cosmos DB for PostgreSQL
SAP Community, shanthakumar_krishnaswamyThe reasoningA recipeRunnable code
Core changed
Lets Deep dive into CAPM and HANA Cloud --> HANACap
SAP Community, shivamshukla12The reasoningRunnable code
Core changed
Run and Deploy SAP CAP (Node.js or Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
Run and Deploy SAP CAP (Java) with PostgreSQL on SAP BTP Cloud Foundry
SAP Community, shanthakumar_krishnaswamyThe reasoningRunnable code
1 stale part
SFSFとHANA Cloudを使用するCAPのアプリケーション開発
SAP Community, rasaiA recipeRunnable code
Core changed
How to create an API to run a HANA Cloud Stored Procedure in Cloud Foundry
SAP Community, gonzalo_hernan_sendraThe reasoningRunnable code
Core changed
Upload data from excel in CAP (Node.js)
SAP Community, KM11Runnable code
Core changed
Distributed Resiliency of SAP CAP applications using SAP HANA Cloud (Multi-Zone Replication)
SAP Community, shanthakumar_krishnaswamyThe reasoning
nothing recorded
Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment
SAP Community, TiaXu
nothing recorded
Testing your CAP HANA Artifacts with jest – including multitenancy, hdbprocedure and hdbview
SAP Community, TristanThe reasoningA recipeRunnable code
Core changed
How I migrated my on-prem xsa cds3+hana solution to cds6+sqlite
SAP Community, alex_myakinkiiThe reasoningRunnable code
Core changed
Extend SAP SuccessFactors on SAP BTP with CAP - Deploy to SAP HANA Cloud
SAP Community, ale_biagiThe reasoning
nothing recorded
Create a Business Service using CDS, Node.js, SQLite and a OData service
SAP Community, raybantonThe reasoningA recipeRunnable code
Core changed
Deploying CAP services with the in-memory SQLite database
SAP Community, liam_mischewskiThe reasoning
nothing recorded
cds deploy to sqlite in-memory database
SAP Community, AndrewBarnard
nothing recorded
Simple steps to deploy your CAP project to HANA cloud
SAP Community, OmPrakashJhaThe reasoning
nothing recorded
SAP BTP Showcase - Use SAP Cloud Application Programming to do Native Development on HANA Cloud
SAP Community, former_member271284The reasoningA recipeRunnable code
Core changed
SAP BTP Showcase – SAP Continuous Integration and Delivery (SAP CI&D) for SAP HANA Cloud
SAP Community, gcalixtosThe reasoningRunnable code
Core changed
SAP Business Application Studio – Using SAP HANA Tools with SAP Cloud Application Programming Model projects
SAP Community, Former MemberThe reasoningA recipeRunnable code
Core changed
My Learnings in SAP-CAP Using MongoDB
SAP Community, krish469The reasoningRunnable code
Gone quiet
SAP Cloud Application Programming Model(CAP):概要およびデモ - Part 1
SAP Community, rasai, part 1 of 2
nothing recorded
First Java Cap Application
SAP Community, bruce_wang3
nothing recorded
Run and Deploy CAP with PostgreSQL on SAP BTP Cloud Foundry (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
Getting started with CAP on PostgreSQL (Node.js)
SAP Community, Mike ZaschkaThe reasoningRunnable code
1 stale part
PostgreSQL persistence adapter for CAP (Node.js)
SAP Community, Volker BuzekThe reasoningRunnable code
Superseded
Use SAP HANA as the Database for a CAP Java Application
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded

Details

Graph6 edges
POINTS OUT →
explains@cap-js/postgresartifact
explainscds-dbmartifact
explainscds-pgartifact
explainsDatabase connectorscapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History2
  • 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