From 177161646e197d37ab4d964c54683ba6842c2d13 Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Tue, 1 Oct 2024 06:51:56 -0400 Subject: [PATCH] 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. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c695421..37177bc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: