• Stars
    star
    1
  • Language
    Go
  • Created over 5 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A mini golang util for waiting for a mysql database to be up

Build Status

WaitForMySQL

A simple command-line tool for blocking scripts from running until a connection is established or a timeout is reached.

This tool was designed to be used in build scripts for things like Travis CI where I was often running into problems with the MySQL docker container command completing before the new database was ready. This meant further steps failed and I kept having to add more time to the build by using the sleep command. Eventually I decided to make this. I now use it to block the build process until the database is ready or an appropriate amount of time has passed.

Usage

CLI usage is pretty simple as set out below. You only need specify the password currently.

  -database string
        database name
  -host string
        database host (default "127.0.0.1")
  -password string
        database password
  -port string
        database port (default "3306")
  -timeout duration
        max timeout in seconds (default 25s)
  -username string
        database username (default "root")

Building

A make file is included. You should be able to simply run make to build the binaries for macOS, Linux and Windows.

More Repositories

1

laravel-webhook-demo

The example code for the article https://medium.com/@SlyFireFox/laravel-innovations-making-your-own-webhook-mechanism-through-notifications-96e75e99a2b1
PHP
17
star
2

laravel-elixir-mjml

A task plugin for running MJML templates in Laravel Elixir
JavaScript
11
star
3

hexavel

A modified version of the Laravel Framework
PHP
7
star
4

openai-laravel-demo

A demo app for using OpenAI with Laravel
PHP
7
star
5

macros-demo

A Demo for Macros
PHP
7
star
6

nova-social-login-demo

A demo for how to implement Social Logins for Laravel Nova
PHP
5
star
7

laravel-runscope

A PHP library for making it easy to use Runscope with your web hooks and external API calls
PHP
5
star
8

notifications-demo

The code in this project is an example of how to create a simple streamlined email unsubscribe mechanism for Laravel's notification system
PHP
5
star
9

hieroglyph

A package to simplify changing between different icon sets
PHP
3
star
10

roadrunner-plugin-template

Template project for a RoadRunner plugin
Go
3
star
11

bitpayclient

An OOP PHP client for interacting with the BitPay API
PHP
2
star
12

validation-rule-demo

The example code for the article https://medium.com/@SlyFireFox/test-driven-development-for-custom-laravel-validation-rules-669d01e34a65
PHP
2
star
13

seo-demo

The code in this project is an example of how to create root level URLs for dynamic content without causing wildcard clashes
PHP
2
star
14

make-command-demo

A demo for making new Make commands in Laravel
PHP
2
star
15

laravel-incident-logs-demo

The example code for the article https://medium.com/@SlyFireFox/laravel-how-to-make-incident-logs-d7fa88e48490
PHP
2
star
16

hexavel-spark

A library for making installs of Spark compatible with Laravel Spark
PHP
1
star
17

torino

An example of a simple Onion address generator
JavaScript
1
star
18

graphaware-reco-client-php

A configurable PHP library for fetching recommendations from a GraphAware Recommendation setup
PHP
1
star
19

laravel-casts-examples

A demo for Laravel Custom Casts with common examples for Money, Location/Address and Date Intervals
PHP
1
star
20

testing-trait-hooks-demo

Demo for Trait hooks to use in Test Cases
PHP
1
star
21

custom-make-model-command

A demo for customising the Laravel make model command to use singular table names.
PHP
1
star