{"id":15519183,"url":"https://github.com/luc45/database-dumper-for-codeception","last_synced_at":"2025-07-26T00:05:51.072Z","repository":{"id":42639200,"uuid":"275903027","full_name":"Luc45/database-dumper-for-codeception","owner":"Luc45","description":"Easily generates database dumps to be used in Codeception.","archived":false,"fork":false,"pushed_at":"2022-03-30T01:05:05.000Z","size":113,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T13:56:16.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Luc45.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-29T19:06:37.000Z","updated_at":"2020-07-02T18:39:21.000Z","dependencies_parsed_at":"2022-09-23T20:10:58.525Z","dependency_job_id":null,"html_url":"https://github.com/Luc45/database-dumper-for-codeception","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc45%2Fdatabase-dumper-for-codeception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc45%2Fdatabase-dumper-for-codeception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc45%2Fdatabase-dumper-for-codeception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luc45%2Fdatabase-dumper-for-codeception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luc45","download_url":"https://codeload.github.com/Luc45/database-dumper-for-codeception/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072132,"owners_count":19743526,"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":[],"created_at":"2024-10-02T10:20:29.583Z","updated_at":"2025-02-21T19:13:41.903Z","avatar_url":"https://github.com/Luc45.png","language":"PHP","readme":"# Install\n\n`composer require --dev lucasbustamante/db-dumper-for-codeception`\n\nAdd the command to your `codeception.yml`:\n```\nextensions:\n    commands:\n        - DumpGenerator\\GenerateDump\n```\n\nOn a suite that uses a `Codeception\\Modules\\Db` module (or any module that extends `Db`), add these parameters:\n\n```\nmodules:\n    config:\n        Db:\n            dump_dsn: 'mysql:host=%DUMP_DB_HOST%;dbname=%DUMP_DB_NAME%'\n            dump_user: '%DUMP_DB_USER%'\n            dump_password: '%DUMP_DB_PASSWORD%'\n```\n\nReplace `%DUMP_DB_HOST%` and similars with your actual values. This should be your local development database, from which the dumps will be generated from.\n\n# Usage\n\nRun `./vendor/bin/codecept dump \u003csuite\u003e`\n\nIn the first run, a Dump config file will be generated at `tests/data/\u003cdump\u003e.sql.php` where you can fine-tune how your dump will be generated. On the subsequent runs, it will generate the dump based on the config. If you don't override any config, it will just do a full dump of the database.\n\nThis library is basically a Codeception wrapper around https://packagist.org/packages/ifsnop/mysqldump-php.\n\nYou can check their documentation to get more information on how exactly you can fine-tune your dump.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc45%2Fdatabase-dumper-for-codeception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluc45%2Fdatabase-dumper-for-codeception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc45%2Fdatabase-dumper-for-codeception/lists"}