Skip to content

Commit

Permalink
docs(readme): update the way dblab connects to mysql through a socket…
Browse files Browse the repository at this point in the history
… file

fix(make): delete docker compose v2
  • Loading branch information
danvergara committed Mar 15, 2023
1 parent e7f2df2 commit 2ca392c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ca392c

Please sign in to comment.