A demo MySQL npm module that provides a simple wrapper for basic CRUD operations (addUser, getSingleUser, getAllUsers, deleteUser). This module is intended for demonstration purposes only and connects to a MySQL database using environment variables for configuration. Version 1.0.8 is the latest stable release, though the package appears to be a demo with limited functionality. It does not appear to have frequent updates. Differentiators: minimal setup with a single initialization call and async/await support. Note: This is not production-ready and may lack security or error handling.
npm install gupshup-mysql-demodbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL using environment variables, then performs addUser, getSingleUser, getAllUsers, and deleteUser operations.
Use const GupshupDB = require('gupshup-mysql-demodb').mysql;Call methods directly on the imported object without instantiation.
Add try/catch and connection timeout logic around initializeMysql.
const GupshupDB = require('gupshup-mysql-demodb').mysql;Set GUPSHUP_DB_CONNECTION_URL, GUPSHUP_DB_USERNAME, GUPSHUP_DB_PASSWORD, GUPSHUP_DB_DATABASE and ensure MySQL is accessible.
No dependency data recorded yet.