Skip to content

Commit

Permalink
Update README.md schemagen installation and usage (#292)
Browse files Browse the repository at this point in the history
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
dkropachev authored Oct 1, 2024
1 parent ee39c9d commit 1771616
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Subpackages provide additional functionality:
## Installation

```bash
go get -u github.com/scylladb/gocqlx/v3
git clone git@github.com:scylladb/gocqlx.git
cd gocqlx/cmd/schemagen/
go install .
```

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

Usage:
```bash
$GOBIN/schemagen [flags]
schemagen [flags]

Flags:
-cluster string
Expand All @@ -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:
Expand Down

0 comments on commit 1771616

Please sign in to comment.