A CLI tool (v0.6.27) that generates REST API endpoints for MySQL, TiDB, and Dameng databases with a single command. Supports multi-database configurations, connection pooling, custom sorting, ref-by checks, includes, and raw SQL execution. Standalone binary packaging via pkg.sh eliminates Node.js runtime dependency. Active development with frequent releases, differs from alternatives by focusing on Chinese database ecosystems.
npm install mysql-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Launch REST API server for MySQL database on localhost:15000, providing CRUD endpoints for all tables.
Use --port flag to specify a different port.
Add a reverse proxy with authentication (e.g., nginx + basic auth) or use firewall rules.
Disable raw endpoint by not exposing it, or restrict network access.
Use --dialect instead of --dialec.
Remove --standalone flag and instead run ./pkg.sh to generate standalone binary.
Ensure MySQL is running and accessible: mysql -h localhost -u root -p.
Run: ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Use one of: mysql, tidb, dameng. Check spelling.
Rebuild with pkg.sh or install dmdb driver: npm install dmdb.
No dependency data recorded yet.