-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md schemagen installation and usage
After `gocqlx` switched to `scylladb/gocql` driver due to the presence `replace` dirrective in `go.mod` user can't ue `go install` anymore.
- Loading branch information
1 parent
e726792
commit 8426a6f
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,9 @@ Subpackages provide additional functionality: | |
## Installation | ||
|
||
```bash | ||
go get -u github.com/scylladb/gocqlx/v3 | ||
git clone [email protected]:scylladb/gocqlx.git | ||
cd gocqlx/cmd/schemagen/ | ||
go install . | ||
``` | ||
|
||
## Getting started | ||
|
@@ -117,7 +119,7 @@ go get -u "github.com/scylladb/gocqlx/v3/cmd/schemagen" | |
|
||
Usage: | ||
```bash | ||
$GOBIN/schemagen [flags] | ||
schemagen [flags] | ||
|
||
Flags: | ||
-cluster string | ||
|
@@ -134,7 +136,7 @@ Example: | |
|
||
Running the following command for `examples` keyspace: | ||
```bash | ||
$GOBIN/schemagen -cluster="127.0.0.1:9042" -keyspace="examples" -output="models" -pkgname="models" | ||
schemagen -cluster="127.0.0.1:9042" -keyspace="examples" -output="models" -pkgname="models" | ||
``` | ||
|
||
Generates `models/models.go` as follows: | ||
|