{"id":15314292,"url":"https://github.com/barelyhuman/gator","last_synced_at":"2025-07-09T20:32:26.683Z","repository":{"id":64303115,"uuid":"488990797","full_name":"barelyhuman/gator","owner":"barelyhuman","description":"Multi Query SQL Runner for Database seeding","archived":false,"fork":false,"pushed_at":"2022-05-07T04:53:39.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-03-27T14:47:15.469Z","etag":null,"topics":["database","postgres","runner","sql"],"latest_commit_sha":null,"homepage":"https://barelyhuman.github.io/gator/","language":"Go","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/barelyhuman.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":"2022-05-05T13:48:51.000Z","updated_at":"2022-05-06T05:32:11.000Z","dependencies_parsed_at":"2023-01-15T10:00:56.908Z","dependency_job_id":null,"html_url":"https://github.com/barelyhuman/gator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/barelyhuman/gator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fgator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fgator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fgator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fgator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barelyhuman","download_url":"https://codeload.github.com/barelyhuman/gator/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Fgator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502657,"owners_count":23618668,"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","postgres","runner","sql"],"created_at":"2024-10-01T08:44:59.137Z","updated_at":"2025-07-09T20:32:26.639Z","avatar_url":"https://github.com/barelyhuman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    Gator\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003eBatch SQL Query runner for Postgres\u003c/p\u003e\n\nHaving new developers setup their databases is a common thing for me to handle and this has a lot of friction due to the\nexisting tools that devs use, some have TablePlus, some have postico and then there's other web based solutions as well.\n\nMost of these export the data in an alphabetical order or in a foreign key dependency order. The 2nd one normally works fine\nwith having to just run the errored out queries once more. The issue is that not all these tools offer a way to skip errors\non queries and just run the next query. Which, is necessary when you are dealing with alphabetical(table name) order based data exports.\n\nGator simplifies my work by separating each query into it's own execution context and\nrunning each query about 10 times (if it fails). This makes sure that all dependent queries are run and if there's still errors, you'll see them in the terminal.\n\n**NOTE:** Gator, is a personal project which wasn't build for the public but the source code is here cause there's nothing to \"close source\"\n\n## Install\n\nLike everything else that I've written in go, the [releases](https://github.com/barelyhuman/releases) page has binaries for common Unix systems.\n\nFor other \\*nix systems, I'd recommend building from source since the library depends on\n[pg_query_go](https://github.com/pganalyze/pg_query_go) and cross compiling for each\noperating system isn't feasible right now. You are free to Raise PR's for adding build scripts for your particular system.\n\n## Usage\n\n```sh\nUsage of gator:\n  -db string\n        database name to run the file against (default \"postgres\")\n  -file string\n        sql file to run\n  -host string\n        host address (default \"localhost\")\n  -password string\n        password for authentication\n  -port int\n        port to connect (default 5432)\n  -sync-sequences\n        Sync Sequences (added in v0.2.0)\n  -user string\n        user for authentication (default \"postgres\")\n```\n\n## License\n\n[MIT](https://github.com/barelyhuman/gator/blob/dev/license) | [Reaper](https://github.com/barelyhuman)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fgator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarelyhuman%2Fgator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Fgator/lists"}