https://github.com/ariga/entviz
Visualize Ent schemas with beautiful ERDs on atlasgo.cloud
https://github.com/ariga/entviz
atlas ent erd go
Last synced: 11 days ago
JSON representation
Visualize Ent schemas with beautiful ERDs on atlasgo.cloud
- Host: GitHub
- URL: https://github.com/ariga/entviz
- Owner: ariga
- License: apache-2.0
- Created: 2023-01-18T14:42:42.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T17:54:42.000Z (about 2 years ago)
- Last Synced: 2025-04-11T23:15:23.262Z (13 days ago)
- Topics: atlas, ent, erd, go
- Language: Go
- Homepage: https://ariga.io
- Size: 20.5 KB
- Stars: 31
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# entviz
Visualize [Ent](https://entgo.io) schemas with beautiful ERDs on [atlasgo.cloud](https://gh.atlasgo.cloud/explore).

## Usage
```shell
go run -mod=mod ariga.io/entviz --help
``````shell
Usage of ariga.io/entviz
go run -mod=mod ariga.io/entviz
Flags:
-dev-url string
dev database to be used to generate the schema (default "sqlite3://file?mode=memory&cache=shared&_fk=1")
-global-unique-id
enable the Global Unique ID feature
```## Example
Share Ent schema using `SQLite` dev database.
```shell
❯ go run -mod=mod ariga.io/entviz ./ent/schema
Here is a public link to your schema visualization
https://gh.atlasgo.cloud/explore/c3aa3f24
```For `MySQL` or `Postgres` check the examples below:
```shell
❯ go run -mod=mod ariga.io/entviz -dev-url "mysql://user:pass@localhost:3306/database" ./ent/schema
❯ go run -mod=mod ariga.io/entviz -dev-url "postgres://postgres:pass@localhost:5432/database?sslmode=disable" ./ent/schema
```