{"id":25736877,"url":"https://github.com/enzodeg40/db-commit","last_synced_at":"2025-05-08T01:15:26.326Z","repository":{"id":64844268,"uuid":"577676961","full_name":"EnzoDeg40/db-commit","owner":"EnzoDeg40","description":"Quickly managed database tables to include in your commits","archived":false,"fork":false,"pushed_at":"2022-12-31T14:19:46.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T01:15:22.356Z","etag":null,"topics":["database","mysql","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/db-commit","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/EnzoDeg40.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}},"created_at":"2022-12-13T09:22:53.000Z","updated_at":"2023-05-03T15:14:20.000Z","dependencies_parsed_at":"2023-01-31T19:15:51.535Z","dependency_job_id":null,"html_url":"https://github.com/EnzoDeg40/db-commit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnzoDeg40%2Fdb-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnzoDeg40%2Fdb-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnzoDeg40%2Fdb-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnzoDeg40%2Fdb-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnzoDeg40","download_url":"https://codeload.github.com/EnzoDeg40/db-commit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978786,"owners_count":21834918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","mysql","nodejs"],"created_at":"2025-02-26T06:22:45.212Z","updated_at":"2025-05-08T01:15:26.299Z","avatar_url":"https://github.com/EnzoDeg40.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# db-commit [WIP]\n \nThis package allows you to manage database migrations in NodeJS projects using SQL type migration files (like [doctrine](https://www.doctrine-project.org/) for example). It uses the package [mysql](https://www.npmjs.com/package/mysql) to connect to the database.\n\n## Installation\n\n```bash\nnpm install -g db-commit\nnpm link db-commit\n```\n\nCreate a .env file in the root of your project with the following content. `DB_PORT` is optional.\n```bash\nDB_HOST=\"localhost\"\nDB_USER=\"root\"\nDB_PASSWORD=\"password\"\nDB_NAME=\"my_database\"\nDB_PORT=\"3306\" \n```\n\n## Usage\n\nGenerate SQL files in `database` folder\n```bash\ndb-commit pull\n```\n\nApply SQL files in `database` folder\n```bash\ndb-commit push\n```\n\nRemove SQL files in `database` folder\n```bash\ndb-commit remove\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzodeg40%2Fdb-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzodeg40%2Fdb-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzodeg40%2Fdb-commit/lists"}