{"id":20983701,"url":"https://github.com/andersnm/mysqldiff","last_synced_at":"2026-04-21T22:31:52.414Z","repository":{"id":66334509,"uuid":"265462458","full_name":"andersnm/MySqlDiff","owner":"andersnm","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-20T05:44:54.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T07:09:41.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/andersnm.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}},"created_at":"2020-05-20T05:39:11.000Z","updated_at":"2020-05-20T05:44:57.000Z","dependencies_parsed_at":"2023-04-16T00:17:22.734Z","dependency_job_id":null,"html_url":"https://github.com/andersnm/MySqlDiff","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/andersnm%2FMySqlDiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersnm%2FMySqlDiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersnm%2FMySqlDiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andersnm%2FMySqlDiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andersnm","download_url":"https://codeload.github.com/andersnm/MySqlDiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243392281,"owners_count":20283559,"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-11-19T05:49:49.607Z","updated_at":"2025-12-29T22:23:48.004Z","avatar_url":"https://github.com/andersnm.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MySqlDiff.CliTool - dotnet mysqldiff\n\n**EXPERIMENTAL** Database diffing and migration tool for MySQL.\n\n## Project format\n\nThe tool operates on a project directory structure like this:\n\n```\n/tables\n  /*.sql\n/triggers\n  /*.sql\n/procedures\n  /*.sql\n/seeds\n  /*.sql\n```\n\nUsers maintain the database schema and seeds by writing plain CREATE TABLE, CREATE PROCEDURE, CREATE TRIGGER, INSERT statements in SQL files under the `tables`, `triggers`, `procedures` and `seeds` directories.\n\nThe tool parses the database structure from these files, compares with a live database instance, and generates SQL to migrate the schema.\n\n## Commands\n\n```\ndotnet mysqldiff diff --source ... --target ...\ndotnet mysqldiff copy  --source ... --output ...\n```\n\n### diff\n\nCompares two projects and generates SQL with the difference. Can be used to generate both up and down migration scripts by reversing the source and target arguments.\n\n```\nOptions:\n  --source \u003cTYPE\u003e                    fs, db or null\n  --source-fs-path \u003cPATH\u003e            Project directory. Only used with --source fs\n  --source-db-cs \u003cCONNECTIONSTRING\u003e  MySQL connection string. Only used with --source db\n  --target \u003cTYPE\u003e                    fs, db or null\n  --target-fs-path \u003cPATH\u003e            Project directory. Only used with --target fs\n  --target-db-cs \u003cCONNECTIONSTRING\u003e  MySQL connection string. Only used with --target db\n```\n\nThe 'null' source or target type specifies an empty project, which thusly generates SQL to create or delete the entire database.\n\n### copy\n\nReads a project and saves it to the file syste. Can be used to export an initial project from a live database instance.\n\n```\n  --source \u003cTYPE\u003e                    fs, db or null\n  --source-fs-path \u003cPATH\u003e            Project directory. Only used with --source fs\n  --source-db-cs \u003cCONNECTIONSTRING\u003e  MySQL connection string. Only used with --source db\n  --output \u003cPATH\u003e                    Where to save the output\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersnm%2Fmysqldiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandersnm%2Fmysqldiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersnm%2Fmysqldiff/lists"}