{"id":21352567,"url":"https://github.com/ostark/pg-converter","last_synced_at":"2025-03-16T04:43:43.265Z","repository":{"id":221994015,"uuid":"747444968","full_name":"ostark/pg-converter","owner":"ostark","description":"Postgres to Mysql dump converter","archived":false,"fork":false,"pushed_at":"2024-03-05T13:01:19.000Z","size":28516,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T17:24:28.172Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ostark.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2024-01-23T23:59:17.000Z","updated_at":"2024-11-10T08:31:43.000Z","dependencies_parsed_at":"2024-02-11T17:28:11.596Z","dependency_job_id":"5ea0556a-f749-4249-94fe-150af8bd13b2","html_url":"https://github.com/ostark/pg-converter","commit_stats":null,"previous_names":["ostark/pg-converter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fpg-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fpg-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fpg-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fpg-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ostark","download_url":"https://codeload.github.com/ostark/pg-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826778,"owners_count":20354220,"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-22T03:14:08.154Z","updated_at":"2025-03-16T04:43:43.243Z","avatar_url":"https://github.com/ostark.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PG Converter\n\nPG Converter is a command-line utility crafted to simplify the process of converting PostgreSQL dumps into dumps compatible with MySQL.\n\nWhile the SQL grammar of both database engines shares similarities, there are distinctions in certain areas. This tool specifically focuses on converting SQL statements generated by [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html), which include commands for creating tables, indexes, constraints, and inserting data.\n\n\n## State of the project (2024-03-05)\n\nIf you discover this repository by accident, you will notice the tool is not ready to use. But you can look around and help with bug reports, PRs are appreciated too!\nSupported (`pg_dump`) statements so far: \n\n1. [x] CREATE TABLE\n2. [x] CREATE INDEX\n3. [x] ALTER SEQUENCE\n4. [x] ALTER TABLE ONLY\n5. [x] COPY\n\n\n## Example \n\n```bash\nphp bin/pg-convert \n    \u003csrc\u003e Postgres source file\n    \u003ctarget\u003e Mysql target file\n    --filterInput=\"^CREATE INDEX searchindex_keywords_idx\"\n    --appendString=\"CREATE FULLTEXT INDEX keywords_idx ON searchindex(keywords);\"\n```\n\n\n\n\n## TODOs\n\n- [ ] e2e tests\n- [ ] integration tests\n\n\n\n---\n\nThis package is inspired by a Perl script by [Tim Sehn](https://github.com/dolthub/pg2mysql), and it is \nbased on the wonderful [PHP Skeleton](https://github.com/nunomaduro/skeleton-php/) by Nuno Maduro. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostark%2Fpg-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fostark%2Fpg-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostark%2Fpg-converter/lists"}