![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cds-pg
- PostgreSQL adapter for SAP CDS (CAP)First a big thank you to our contributors:
This node module provides an adapter to the PostgreSQL database.
For a short introduction on the background of this project you can check out a short video that has been captured as part of the SAP devtoberfest.
cds-pg is ready to be used!
Still, there's some gaps left to fill - note the list below and please see CONTRIBUTING.md
for how to contribute additional capabilities!
Also checkout the following blog posts on how to get started using cds-pg
in your local development environment and on SAP Business Technology Platform (BTP), Cloud Foundry:
SELECT|READ
(~ OData GET
)INSERT|CREATE
(~ OData POST
)UPDATE
(~ OData PUT|PATCH
)DELETE
(~ OData DELETE
)$filter
, $expand
, $select
)virtual
fields (see issue 204)localized
entities (see issue 196)Add this package to your SAP Cloud Application Programming Model project by running:
npm install cds-pg
Then add this configuration to the cds
section of your `package.json:
"cds": {
"requires": {
"db": {
"kind": "postgres"
},
"postgres": {
"dialect": "plain", // <- for cds >= 5.1
"impl": "cds-pg",
"model": [
"srv"
]
}
}
}
For local development you can provide the credentials in the file default-env.json
in the root folder of your project:
{
"VCAP_SERVICES": {
"postgres": [
{
"name": "postgres",
"label": "postgres",
"tags": ["plain", "database"],
"credentials": {
"host": "localhost",
"port": "5432",
"database": "dbname",
"user": "postgres",
"password": "postgres",
"schema":"public"
}
}
]
}
}
cds-pg
contains the database adapter to translate the incoming requests to PostgreSQL during runtime, but also includes a quick and dirty command to deploy the current data model to the PostgreSQL database specified in default-env.json
. Initial data will also be filled from the provided .csv
files following the approach described in Providing Initial Data. Be aware that the existing tables and views are deleted and then re-created according the CDS model, so this should not be used in production environments:
npx cds-pg deploy srv --to db
For a more sophisticated approach, please check out cds-dbm
at https://github.com/mikezaschka/cds-dbm, which offers an advanced deployment model including delta handling of data and models!
Please also read the following blogposts for a detailed description, on how cds-dbm
can be used in combintation with cds-pg
:
cds-pg
cds-pg
and cds-dbm
locally and on SAP BTB Cloud FoundryFAQs
PostgreSQL adapter for SAP CDS (CAP)
The npm package cds-pg receives a total of 520 weekly downloads. As such, cds-pg popularity was classified as not popular.
We found that cds-pg demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.