Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@sap/hdi-deploy
Advanced tools
@sap/hdi-deploy is an npm package designed to facilitate the deployment of database artifacts to the SAP HANA Database Infrastructure (HDI). It automates the process of deploying database objects such as tables, views, procedures, and more, making it easier to manage and maintain database schemas in SAP HANA environments.
Deploy Database Artifacts
This feature allows you to deploy database artifacts to the SAP HANA Database Infrastructure. The code sample demonstrates how to use the @sap/hdi-deploy package to deploy a database model located in the 'db' directory with automatic undeploy and deploy options enabled.
const hdiDeploy = require('@sap/hdi-deploy');
const options = {
model: 'db',
autoUndeploy: true,
autoDeploy: true
};
hdiDeploy.deploy(options).then(() => {
console.log('Deployment successful');
}).catch((err) => {
console.error('Deployment failed', err);
});
Undeploy Database Artifacts
This feature allows you to undeploy database artifacts from the SAP HANA Database Infrastructure. The code sample demonstrates how to use the @sap/hdi-deploy package to undeploy a database model located in the 'db' directory with the autoUndeploy option enabled.
const hdiDeploy = require('@sap/hdi-deploy');
const options = {
model: 'db',
autoUndeploy: true
};
hdiDeploy.undeploy(options).then(() => {
console.log('Undeployment successful');
}).catch((err) => {
console.error('Undeployment failed', err);
});
Check Deployment Status
This feature allows you to check the status of the current deployment. The code sample demonstrates how to use the @sap/hdi-deploy package to retrieve and log the deployment status.
const hdiDeploy = require('@sap/hdi-deploy');
hdiDeploy.getStatus().then((status) => {
console.log('Deployment status:', status);
}).catch((err) => {
console.error('Failed to get deployment status', err);
});
Flyway is an open-source database migration tool that strongly favors simplicity and convention over configuration. It allows you to manage and track database schema changes. Unlike @sap/hdi-deploy, which is specific to SAP HANA, Flyway supports multiple databases including PostgreSQL, MySQL, and Oracle.
Liquibase is an open-source library for tracking, managing, and applying database schema changes. It supports a wide range of databases and provides a flexible way to manage database migrations. Compared to @sap/hdi-deploy, Liquibase offers more extensive support for different database systems and more advanced features like rollback and branching.
db-migrate is a database migration framework for Node.js that supports various databases like MySQL, PostgreSQL, and SQLite. It provides a simple way to manage database schema changes through migration scripts. While @sap/hdi-deploy is tailored for SAP HANA, db-migrate offers broader database support and is more general-purpose.
FAQs
HDI content deployment
The npm package @sap/hdi-deploy receives a total of 127,490 weekly downloads. As such, @sap/hdi-deploy popularity was classified as popular.
We found that @sap/hdi-deploy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.