From e8a989105fd174fd9b83001381eab9dae22cc62d Mon Sep 17 00:00:00 2001 From: Stephen Osunrinde <47150226+yngfoxx@users.noreply.github.com> Date: Thu, 30 May 2024 22:49:30 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 58bc789..e05490e 100644 --- a/README.md +++ b/README.md @@ -112,12 +112,12 @@ t.Log(people) Installation ```bash -go get -u "github.com/scylladb/gocqlx/v2/cmd/schemagen" +go install github.com/scylladb/gocqlx/v2/cmd/schemagen@latest ``` Usage: ```bash -$GOBIN/schemagen [flags] +schemagen [flags] Flags: -cluster string @@ -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: From 6dd6bf90f8d3d1ccc4f0efcafcbb887d8592fffd Mon Sep 17 00:00:00 2001 From: Sylwia Szunejko <52855732+sylwiaszunejko@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:16:49 +0200 Subject: [PATCH 2/2] Update README.md Co-authored-by: Dmitry Kropachev --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4de7718..755e2c3 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ t.Log(people) Installation ```bash -go install github.com/scylladb/gocqlx/v2/cmd/schemagen@latest +go install github.com/scylladb/gocqlx/v3/cmd/schemagen@latest ``` Usage: