{"id":16465577,"url":"https://github.com/peterfox/waitformysql","last_synced_at":"2025-02-27T14:51:00.593Z","repository":{"id":146560071,"uuid":"179566498","full_name":"peterfox/waitformysql","owner":"peterfox","description":"A mini golang util for waiting for a mysql database to be up","archived":false,"fork":false,"pushed_at":"2021-09-01T17:39:32.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T13:51:27.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/peterfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"peterfox"}},"created_at":"2019-04-04T19:48:19.000Z","updated_at":"2023-03-15T12:51:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d19aa56-8232-499c-9acb-e98556413336","html_url":"https://github.com/peterfox/waitformysql","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fwaitformysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fwaitformysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fwaitformysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2Fwaitformysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterfox","download_url":"https://codeload.github.com/peterfox/waitformysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241026471,"owners_count":19896640,"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-11T11:34:28.904Z","updated_at":"2025-02-27T14:51:00.572Z","avatar_url":"https://github.com/peterfox.png","language":"Go","funding_links":["https://github.com/sponsors/peterfox"],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/peterfox/waitformysql.svg?token=sykMyWNtTgYgm3dx9GKK\u0026branch=master)](https://travis-ci.com/peterfox/waitformysql)\n\n# WaitForMySQL\n\nA simple command-line tool for blocking scripts from running\nuntil a connection is established or a timeout is reached.\n\nThis tool was designed to be used in build scripts for things\nlike Travis CI where I was often running into problems with the MySQL\ndocker container command completing before the new database was ready.\nThis meant further steps failed and I kept having to add more time to\nthe build by using the sleep command. Eventually I decided to make this.\nI now use it to block the build process until the database is ready\nor an appropriate amount of time has passed.\n\n## Usage\n\nCLI usage is pretty simple as set out below. You only need specify\nthe password currently.\n\n```\n  -database string\n        database name\n  -host string\n        database host (default \"127.0.0.1\")\n  -password string\n        database password\n  -port string\n        database port (default \"3306\")\n  -timeout duration\n        max timeout in seconds (default 25s)\n  -username string\n        database username (default \"root\")\n```\n\n## Building\n\nA make file is included. You should be able to simply run `make` to\nbuild the binaries for macOS, Linux and Windows.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Fwaitformysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterfox%2Fwaitformysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Fwaitformysql/lists"}