A lightweight MySQL query builder focused on CREATE TABLE statements. Version 0.0.4 is the latest stable release. It generates SQL from a JavaScript configuration object, supporting auto-increment, primary keys, indexes, foreign keys with ON UPDATE/ON DELETE options, and character set/collation per table and column. Differentiated from larger ORMs by its minimal scope and simple declarative API. No releases since initial publish; maintenance unknown.
npm install tool-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generate a MySQL CREATE TABLE statement from a configuration object, including auto-increment primary key and indexed column.
Use require('tool-mysql') instead of import.Create a .d.ts file with declare module 'tool-mysql' and export function signature.
Ensure option values are uppercase as documented.
Consider using up-to-date alternatives like knex.js or typeorm.
Run 'npm install tool-mysql' and verify package.json dependencies.
Use: const toolMysql = require('tool-mysql');Use require() as the package does not support ESM.
Use bundler (e.g., webpack) or convert to ESM import if package provides it (it doesn't).
No dependency data recorded yet.