Version 0.3.0. A lightweight, strongly typed CRUD module for MySQL databases that wraps the mysql package. Provides typed Create, Read, Update, Delete methods on a per-table basis using TypeScript generics. Simple API but requires manual mysql connection setup and table schema definitions. Currently in early development (pre-1.0), released irregularly. Differentiated by TypeScript-first design with minimal abstraction over raw MySQL operations.
npm install mysql-crud-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL, defines a User schema, creates a CRUD instance for the 'users' table, creates a record, and reads all records.
Run 'npm install mysql' alongside mysql-crud-ts.
Pin to exact version or check changelog before updating.
Use a raw query or extend with conditions via a separate library.
Implement retry logic or use a wrapper with connection pooling.
Change to 'import Crud from 'mysql-crud-ts''
Run 'npm install mysql-crud-ts'
Use 'import Crud from 'mysql-crud-ts''