Skip to content

Commit

Permalink
Fix typos (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored Jul 6, 2022
1 parent 72ea0c1 commit 5ee1f22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/ecto/erd/document/mermaid.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule Ecto.ERD.Document.Mermaid do
end
else
Logger.warning(
"Source #{inspect(source)} countains invalid symbols and cannot be displayed"
"Source #{inspect(source)} contains invalid symbols and cannot be displayed"
)

nil
Expand Down Expand Up @@ -94,7 +94,7 @@ defmodule Ecto.ERD.Document.Mermaid do
end
else
Logger.warning(
"Field name #{inspect(field.name)} countains invalid symbols and cannot be displayed"
"Field name #{inspect(field.name)} contains invalid symbols and cannot be displayed"
)

nil
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto/erd/node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule Ecto.ERD.Node do
}
)
when not is_nil(source) do
# if fields have different types with the same name, then only 1 type will be choosen
# if fields have different types with the same name, then only 1 type will be chosen
fields = Enum.uniq_by(fields1 ++ fields2, & &1.name)

cluster =
Expand Down
6 changes: 3 additions & 3 deletions lib/mix/tasks/ecto.gen.erd.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule Mix.Tasks.Ecto.Gen.Erd do
## QuickDBD
A format that is used by [QuickDBD](https://www.quickdatabasediagrams.com) - a competitor of [dbdiagram.io](https://dbdiagram.io).
Similarly to DBML, it is also focused on tables and cannot display embeded schemas. However, this format doesn't support clusters.
Similarly to DBML, it is also focused on tables and cannot display embedded schemas. However, this format doesn't support clusters.
It doesn't have a reserved file extension, but we use `*.qdbd`.
Expand All @@ -73,7 +73,7 @@ defmodule Mix.Tasks.Ecto.Gen.Erd do
$ mix ecto.gen.erd --output-path=ecto_erd.mmd
```
If you have installed [mermaid-cli](https://github.com/mermaid-js/mermaid-cli) locally, the output `*.mmd` file can be
coverted to image using the following command:
converted to image using the following command:
```
$ mmdc -i ecto_erd.mmd -o erd.png -w 6000 -H 6000
```
Expand All @@ -93,7 +93,7 @@ defmodule Mix.Tasks.Ecto.Gen.Erd do
* `:fontname` - font name, defaults to `Roboto Mono`. Must be monospaced font if output format is `dot` and more than 1 column is displayed.
The option is only supported for `dot` and `puml` files.
* `:columns` - list of columns which will be displayed for each node (schema/source). Set to `[]` to hide fields completelly.
* `:columns` - list of columns which will be displayed for each node (schema/source). Set to `[]` to hide fields completely.
Available columns: `:name` and `:type`. The option is only supported for `dot`, `puml` and `mmd`(`mmd` only allows usage of `[]` and the default value).
Default values:
* `[:name, :type]` for `dot` and `puml`.
Expand Down

0 comments on commit 5ee1f22

Please sign in to comment.