Skip to content

Commit

Permalink
build(makefile): add a new target command to connect with a mysql dat…
Browse files Browse the repository at this point in the history
…abase through the url command
  • Loading branch information
danvergara committed Oct 21, 2022
1 parent 262e215 commit f6e0d9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ run-sqlite3: build-sqlite3
run-url: build
./dblab --url postgres://postgres:password@localhost:5432/users?sslmode=disable

.PHONY: run-mysql-url
## run-mysql-url: Runs the app passing the url as parameter
run-mysql-url: build
./dblab --url "mysql://myuser:5@klkbN#ABC@tcp(localhost:3306)/mydb"

.PHONY: up
## up: Runs all the containers listed in the docker-compose.yml file
up:
Expand Down

0 comments on commit f6e0d9c

Please sign in to comment.