TypeScript library providing MySQL connection configuration and table name constants for the Pawsh pet grooming platform. Version 3.31.4-39 automatically reads environment variables to map logical table names (e.g., APPOINTMENTS_TABLE_NAME) to SQL table names (e.g., appointments). Ships built-in TypeScript types and exports a config object and all table name constants. Released daily; no competitors as it's internal to Pawsh.
npm install pawsh-mysql-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use config and table name constants in TypeScript.
Create your own connection with mysql2 using config properties like host, user, password.
Use import statements instead of require.
Use config.getTableName() to get the SQL table name from the env var.
Use mysql2.createConnection() with config properties.
Ensure import is correct: import { APPOINTMENTS_TABLE_NAME } from 'pawsh-mysql-db'Add "type": "module" to package.json or use dynamic import.