A CLI utility for executing SQL queries sequentially from a '.sql' file against MySQL databases. Current version 1.2.2. When a query fails, it stops execution and preserves the failed query at the top of the file, allowing resume after correction. Successful queries are removed from the file. Supports saving credentials for reuse and automatic logging. Only supports MySQL as of now, with no recent updates; the project appears to be in maintenance mode.
npm install ark-sql-runnerNo compatibility data collected yet for this library.
Installs the package globally and runs a SQL file against a MySQL database with credentials provided via CLI flags.
Use a different tool such as psql for PostgreSQL.
Always keep a backup of your original SQL file before running this tool.
Avoid using production credentials; prefer environment variables or a secure vault.
Consider using mysql2 or a more modern SQL runner.
Ensure your file name ends with '.sql' or rename it accordingly.
Verify your MySQL credentials and the user's host permissions.
Create the database first or check the database name spelling.