diff --git a/Makefile b/Makefile index 46fed4a..f92ec29 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ unit-test: .PHONY: int-test ## int-test: Runs the integration tests int-test: - docker compose run --entrypoint=make dblab test + docker-compose run --entrypoint=make dblab test .PHONY: linter ## linter: Runs the golangci-lint command @@ -64,7 +64,7 @@ run-mysql-socket-url: build .PHONY: run-sqlite3 ## run-sqlite3: Runs the application with a connection to sqlite3 run-sqlite3: build-sqlite3 - docker compose run --rm dblab-sqlite3 + docker-compose run --rm dblab-sqlite3 ./dblab --db db/dblab.db --driver sqlite3 .PHONY: run-url @@ -85,12 +85,12 @@ run-config: build .PHONY: up ## up: Runs all the containers listed in the docker-compose.yml file up: - docker compose up --build -d + docker-compose up --build -d .PHONY: down ## down: Shut down all the containers listed in the docker-compose.yml file down: - docker compose down + docker-compose down .PHONY: form ## form: Runs the application with no arguments diff --git a/README.md b/README.md index 810967e..e8f7163 100644 --- a/README.md +++ b/README.md @@ -139,8 +139,8 @@ $ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schem As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated. ```sh -$ dblab --url mysql://user@unix(/path/to/socket)/dbname?charset=utf8 -$ dblab --socket /path/to/socket --user myuser --db users --ssl disable --port 5432 --driver mysql --limit 50 +$ dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8" +$ dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50 ``` ### Configuration