go-goose

module
v0.0.0-...-c201e3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT

README

Go goose

Dependencies

  • Go: 1.14.x
  • Docker: >= 18.06
  • docker-compose: >= 1.25.0
  • direnv

Setup

#------------------------------------------------------------------------------
# 1. Install `docker`, `docker-compose`, `direnv`
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# 2. Setup
#------------------------------------------------------------------------------
cp .envrc.local.sample .envrc.local
vi .envrc.local
direnv allow .
docker-compose up
docker-compose exec -T db mysql < db/create_database.sql

Usage

goose up

Refere to

Directories

Path Synopsis
cmd
goose
@see https://github.com/pressly/goose/blob/v2.6.0/examples/go-migrations/main.go
@see https://github.com/pressly/goose/blob/v2.6.0/examples/go-migrations/main.go
db
pkg
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL