Skip to content

Commit 1771616

Browse files
authored
Update README.md schemagen installation and usage (#292)
After `gocqlx` switched to `scylladb/gocql` driver due to the presence `replace` dirrective in `go.mod` user can't ue `go install` anymore.
1 parent ee39c9d commit 1771616

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ Subpackages provide additional functionality:
2020
## Installation
2121

2222
```bash
23-
go get -u github.com/scylladb/gocqlx/v3
23+
git clone [email protected]:scylladb/gocqlx.git
24+
cd gocqlx/cmd/schemagen/
25+
go install .
2426
```
2527

2628
## Getting started
@@ -117,7 +119,7 @@ go get -u "github.com/scylladb/gocqlx/v3/cmd/schemagen"
117119

118120
Usage:
119121
```bash
120-
$GOBIN/schemagen [flags]
122+
schemagen [flags]
121123

122124
Flags:
123125
-cluster string
@@ -134,7 +136,7 @@ Example:
134136

135137
Running the following command for `examples` keyspace:
136138
```bash
137-
$GOBIN/schemagen -cluster="127.0.0.1:9042" -keyspace="examples" -output="models" -pkgname="models"
139+
schemagen -cluster="127.0.0.1:9042" -keyspace="examples" -output="models" -pkgname="models"
138140
```
139141

140142
Generates `models/models.go` as follows:

0 commit comments

Comments
 (0)