
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
mysqlprocedures
Advanced tools
Package for calling stored procedures dynamically for any mysql connection with error handling
A simple Node.js module for calling stored procedures using MySQL.
Install the package using npm:
npm install mysqlprocedures
#Usage
const StoredProcedureCaller = require('mysqlprocedures');
// Set up MySQL connection configuration
const dbConfig = {
host: 'your-host',
user: 'your-username',
password: 'your-password',
database: 'your-database',
};
// Create an instance of StoredProcedureCaller
const storedProcedureCaller = new StoredProcedureCaller(dbConfig);
// Define the stored procedure name and input parameters
const procedureName = 'your_stored_procedure';
const inputs = [param1, param2, param3]; // replace with your actual parameters
// Call the stored procedure
storedProcedureCaller.callStoredProcedure(procedureName, inputs, (error, results) => {
if (error) {
console.error('Error:', error);
} else {
console.log('Results:', results);
}
// Close the MySQL connection
storedProcedureCaller.closeConnection();
});
FAQs
Package for calling stored procedures dynamically for any mysql connection with error handling
We found that mysqlprocedures demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.