kaishuu0123 / erd-go

Translates a plain text description of a relational database schema to a graphical entity-relationship diagram.(convert to dot file)
MIT License
125 stars 36 forks source link

explain, how to install on windows and what the binary does #19

Open aisbergde opened 3 years ago

aisbergde commented 3 years ago

I don't know Go and I never used it. I just want to use this VSC extension: https://marketplace.visualstudio.com/items?itemName=kaishuu0123.vscode-erd-preview&ssr=false#overview

I tried to follow this instruction:

go get github.com/kaishuu0123/erd-go

I installed Go to be able to do this. And Go will do something, and finally there is something in this folder:

C:\Users\ggoer\go\pkg\mod\cache\download\github.com\kaishuu0123\erd-go\@v

But I don't know Go, and I don't know if this is OK or not. There is no exe and there is no instruction how to build an exe binary. Or maybe I don't need a binary? But on the instruction for the VSC extension it looks like I need some binary. Could you add some instructions how to build the binary after go get github.com/kaishuu0123/erd-go

I tried to use binary from here: https://github.com/kaishuu0123/erd-go/releases I don't know what this is: is it an installer? Or something different?

Maybe this is not an installer? When I execute it, then first I get some warning, I say: execute anyway, but there is only a black window for a short time. When I execute the binary again, then there is a black window for a short time again, but it is too short to read any message which could be there.

Could you add some information what kind of binary this is which can be executed but which will finish so fast?

I also don't understand the usage:

Usage:
  erd-go [OPTIONS] PATTERN [PATH]

I try to understand this instruction: there should be an application erd-go. Where to get it? How to build it? Or is the usage

Usage:
  windows_amd64_erd-go.exe [OPTIONS] PATTERN [PATH]
ray-g commented 3 years ago

Just download the window version file (windows_amd64_erd-go.exe) from the release page and rename it to erd-go.exe, and add the execution path to Path environment should work. But, currently, it seems has problems running on Windows, see #21