spring1843 / go-db-testing

Tips on how to structure apps that interact with DB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go DB Testing

Running

1- Get a running instance of MySQL

docker run --name testmysql -e MYSQL_ROOT_PASSWORD=rootpass -e MYSQL_DATABASE=blog -p 3306:3306 -d mysql:latest

2- Run the migration files sequentially

cat sql-files/* | mysql -u root -prootpass -h 0.0.0.0 --port=3306

About

Tips on how to structure apps that interact with DB


Languages

Language:Go 100.0%