Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #268

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ t.Log(people)
Installation

```bash
go get -u "github.com/scylladb/gocqlx/v3/cmd/schemagen"
go install github.com/scylladb/gocqlx/v3/cmd/schemagen@latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to commit the v2->v3 change, but I realized that this would no longer work ref: #287
@dkropachev what do you think? Should we have your workaround mentioned in the README?

Copy link
Collaborator

@dkropachev dkropachev Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, @yngfoxx could you please do it.

```

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

Flags:
-cluster string
Expand All @@ -134,7 +134,12 @@ 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
```

Or using a go generate comment:
```go
//go:generate schemagen -cluster=127.0.0.1:9042 -keyspace=examples -output=models -pkgname=models
```

Generates `models/models.go` as follows:
Expand Down
Loading