{"id":23164764,"url":"https://github.com/percolate/ddldump","last_synced_at":"2025-08-18T04:32:40.766Z","repository":{"id":45910699,"uuid":"65858733","full_name":"percolate/ddldump","owner":"percolate","description":"Dump a clean version of the DDLs of your tables, so you can version them.","archived":false,"fork":false,"pushed_at":"2023-03-16T17:16:30.000Z","size":120,"stargazers_count":29,"open_issues_count":1,"forks_count":3,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-07-23T22:34:01.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/percolate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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}},"created_at":"2016-08-16T22:47:51.000Z","updated_at":"2024-11-18T17:48:46.000Z","dependencies_parsed_at":"2024-12-18T01:12:56.321Z","dependency_job_id":"ed69e0ab-693b-4538-a726-f7f74b1fbcdd","html_url":"https://github.com/percolate/ddldump","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/percolate/ddldump","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fddldump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fddldump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fddldump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fddldump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/percolate","download_url":"https://codeload.github.com/percolate/ddldump/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/percolate%2Fddldump/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270945173,"owners_count":24672873,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-18T01:12:49.306Z","updated_at":"2025-08-18T04:32:40.490Z","avatar_url":"https://github.com/percolate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddldump\n\n[![CircleCI](https://circleci.com/gh/percolate/ddldump.svg?style=svg)](https://circleci.com/gh/percolate/ddldump)\n\nDump and version the DDLs of your tables, while cleaning the dumps of all the\nvarying stuff, like MySQL's AUTOINCs, that would make it hard to version and\ncheck for differences during continuous integration.\n\n## Usage\n\n```bash\nddldump \u003cdsn\u003e [table] \u003e table.sql\n```\n\n## Example\n\nDump all the table DDLs of the MySQL database `cooldb`:\n\n```\nddldump mysql://localhost/cooldb \u003e cooldb.sql\n```\n\nDump the specific DDL of the `awesome` PostgreSQL table.\n(requires `postgresql-client`, matching the server version, to be installed):\n\n```bash\nddldump postgresql://localhost/mydb awesome \u003e awesome.sql\n```\n\nCompare your dump with what's actually in your database:\n\n```bash\n$ ddldump --diff=cooldb.sql mysql://localhost/cooldb\n--- mysql\n\n+++ cooldb.sql\n\n@@ -14,7 +14,7 @@\n\n\n -- Create syntax for TABLE 'user'\n CREATE TABLE `user` (\n-  `id` bigint(20) unsigned COMMENT 'The user ID',\n+  `id` bigint(20) unsigned NOT NULL COMMENT 'The user ID',\n   `name` varchar(64) NOT NULL COMMENT 'The user name',\n   PRIMARY KEY (`id`)\n```\n\n## Install\n\n```bash\npip install ddldump\n```\n\n## Upload a new version\n\n1. Set a new version in `ddldump/constants.py`\n1. Open a PR, get it reviewed, get it merged\n1. `git tag \u003cversion\u003e`\n1. `git push --tags`\n1. `make release`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercolate%2Fddldump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercolate%2Fddldump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercolate%2Fddldump/lists"}