{"id":29401743,"url":"https://github.com/jmrashed/jmrashed-sql-import-export","last_synced_at":"2026-05-15T23:03:29.973Z","repository":{"id":289726101,"uuid":"869795925","full_name":"jmrashed/jmrashed-sql-import-export","owner":"jmrashed","description":"A command-line tool for importing large SQL files into a MySQL database and exporting the database daily. This package provides an easy way to manage your SQL operations directly from the command line.","archived":false,"fork":false,"pushed_at":"2024-10-08T22:50:14.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T21:00:47.611Z","etag":null,"topics":["export","import","nodejs","sql"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/jmrashed-sql-import-export","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmrashed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-08T22:49:10.000Z","updated_at":"2024-10-08T22:51:00.000Z","dependencies_parsed_at":"2025-04-24T18:55:23.935Z","dependency_job_id":"463e3db9-03ca-48f5-92ba-3ce2def10ca8","html_url":"https://github.com/jmrashed/jmrashed-sql-import-export","commit_stats":null,"previous_names":["mrzstack/jmrashed-sql-import-export","jmrashed/jmrashed-sql-import-export"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmrashed/jmrashed-sql-import-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fjmrashed-sql-import-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fjmrashed-sql-import-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fjmrashed-sql-import-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fjmrashed-sql-import-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrashed","download_url":"https://codeload.github.com/jmrashed/jmrashed-sql-import-export/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Fjmrashed-sql-import-export/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["export","import","nodejs","sql"],"created_at":"2025-07-10T16:08:01.537Z","updated_at":"2026-05-15T23:03:29.702Z","avatar_url":"https://github.com/jmrashed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jmrashed-sql-import-export\n\nA command-line tool for importing large SQL files into a MySQL database and exporting the database daily. This package provides an easy way to manage your SQL operations directly from the command line.\n\n## Features\n\n- Import SQL files into your MySQL database.\n- Schedule daily exports of the database.\n- Simple command-line interface for ease of use.\n\n## Installation\n\nTo install the package, run the following command:\n\n```bash\nnpm install jmrashed-sql-import-export\n```\n\n## Usage\n\nAfter installation, you can use the `sql-manager` command in your terminal.\n\n### Importing SQL Files\n\nTo import an SQL file into your database, use the following command:\n\n```bash\nsql-manager import \u003cpath/to/your/file.sql\u003e\n```\n\n**Example:**\n\n```bash\nsql-manager import path/to/your/file.sql\n```\n\n### Scheduling Daily Export\n\nTo schedule a daily export of your database, use the following command:\n\n```bash\nsql-manager export \u003cpath/to/backup/directory\u003e\n```\n\n**Example:**\n\n```bash\nsql-manager export /path/to/backup/directory\n```\n\nThis will schedule a daily export at midnight to the specified directory.\n\n## Configuration\n\nYou need to configure your database connection settings in the `cli.js` file. Update the following section with your MySQL database credentials:\n\n```javascript\n// Database configuration\nconst config = {\n    host: 'localhost', // Your database host\n    user: 'your_username', // Your database username\n    password: 'your_password', // Your database password\n    database: 'your_database' // Your database name\n};\n```\n\n## Requirements\n\n- Node.js (v12 or later)\n- MySQL database\n\n## Dependencies\n\n- [mysql2](https://www.npmjs.com/package/mysql2) - For connecting to the MySQL database.\n- [commander](https://www.npmjs.com/package/commander) - For building the CLI.\n- [node-cron](https://www.npmjs.com/package/node-cron) - For scheduling daily exports.\n- [fs](https://nodejs.org/api/fs.html) - For file system operations.\n- [path](https://nodejs.org/api/path.html) - For handling file paths.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Contributing\n\nContributions are welcome! Please submit a pull request or open an issue for any improvements or bug fixes.\n\n## Contact\n\nFor any inquiries, please contact me at [jmrashed@gmail.com]. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fjmrashed-sql-import-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmrashed%2Fjmrashed-sql-import-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Fjmrashed-sql-import-export/lists"}