MySQL client library for Node.js and TypeScript (v0.1.16). Lightweight, type-safe wrapper around mysql2 with minimal overhead. Releases are infrequent and pre-1.0. Differentiates from mysql2 by providing first-class TypeScript types and a cleaner API, but is immature and may have breaking changes.
npm install mysql-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MySQL connection, runs a simple query, and logs the result.
Pin to exact version in package.json.
Run 'npm install mysql2' in your project.
Use 'import mysql from 'mysql-core'' instead of 'const mysql = require('mysql-core')'.Check the type definitions for completeness.
npm install mysql2
Use import mysql from 'mysql-core' or const mysql = require('mysql-core').defaultUse mysql.createConnection(...)