51 Commits

Author SHA1 Message Date
Dmitry Kropachev
38001d64ac Update gocql version to v1.16.1 (#353)
* Update gocql version to v1.16.1

1. Update gocql to v1.16.1
2. Update golang to 1.25, since new gocql version requres it

* Update golangci to 2.5.0

It is needed since 1.64.8 does not support golang 1.25.
1. Update golangci to 2.5.0
2. Migrate from golangci config v1 to v2
3. Integrate fieldaligment to golangci
4. Drop fieldaligment from Makefile
5. Address complaints
2025-10-28 14:52:22 -04:00
Dmitry Kropachev
ce13945e3f Update README.md (#347)
* Update README.md

1. Remove test code, replace it with production code, t.Log -> log.
2. Add import part
3. Add gocqlx instalation step

* Fix typo in installation instructions
2025-09-17 07:41:11 -04:00
Dmitry Kropachev
25cee51cac Upgrade gocql to 1.15.3 (#343)
gocql 1.15.3 brings new APIs for `gocql.Batch` and `gocql.Query`:
- `SetRequestTimeout`
- `GetRequestTimeout`

So, this change adds relative APIs to the `gocqlx.Batch` and `gocqlx.Queryx`.
2025-09-08 06:25:00 -04:00
Sylwia Szunejko
f86897552b Update documentation to refelct switch to scylladb/gocql (#333) 2025-07-14 08:18:43 -04:00
Dmitry Kropachev
177161646e 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.
2024-10-01 06:51:56 -04:00
Guy Shtub
877066f0c8 adding lesson link to readme file (#181) 2024-09-30 16:26:38 -04:00
sylwiaszunejko
e7267922c4 Release v3 - change v2 suffix to v3
Because of recent changes there is a need for a new major
release. Changes are switching to scylladb/gocql and replacing
Unsafe with Strict mechanism.
2024-07-15 10:41:57 +02:00
alireza khojastehfar
12811b5554 Update README.md (#263)
fixed naming mistake of `camel case` to `snake case`
2024-02-20 14:59:42 +01:00
Jeremy Stone
2ac4afd7d5 update documentation with examples of non-persisted fields 2022-04-13 17:03:22 +02:00
Michał Matczuk
8477485a45 cmd/schemagen: refactoring
- Replace log.Faltal with error wrapping in schemagen func
- Simplify tests, use temp dir and ioutil functions, remove boilerplate code
- In test use schemagen keyspace to avoid name conflict with examples
- Change template
2021-11-17 12:25:21 +01:00
Vladimir Shteinman
1bfe101568 schemagen cli 2021-11-17 09:35:27 +01:00
Richard Cooper
49993c1fbb Update godoc badge link 2021-07-16 10:05:49 +02:00
Michał Matczuk
41e4a3fa11 README: Remove leading spaces 2020-12-03 13:37:56 +01:00
Michal Jan Matczuk
009b5ec4b5 Update README.md 2020-06-09 09:19:13 +02:00
Michal Jan Matczuk
a721151829 Update README.md 2020-05-13 14:09:00 +02:00
Michal Jan Matczuk
e90337b9ca Update README.md 2020-04-29 09:35:08 +02:00
Michal Jan Matczuk
507391a34c Update README.md 2020-04-23 17:44:01 +02:00
Michał Matczuk
0675f72f4f Updated examples and README for 2.0
Signed-off-by: Michał Matczuk <michal@scylladb.com>
2020-04-23 16:23:30 +02:00
Michał Matczuk
ab279e68ed Automated UDT support
This patch adds the power of GocqlX to UDTs.
Now you can make a struct be UDT compatible by adding a single line.

```
type FullName struct {
	gocqlx.UDT
	FirstName string
	LastName  string
}
```

Signed-off-by: Michał Matczuk <michal@scylladb.com>
2020-04-21 09:41:41 +02:00
Michał Matczuk
1e766b10c9 Update benchmark results in README
Signed-off-by: Michał Matczuk <michal@scylladb.com>
2020-04-17 15:08:25 +02:00
Michał Matczuk
4b8b455fa0 benchmark: Update benchmark
- Run on a single CPU
- Moved query initialisation outside the timed zone

Signed-off-by: Michał Matczuk <michal@scylladb.com>
2020-04-16 12:39:34 +02:00
Guy
c36e6c5e66 added training information to readme file 2020-02-10 09:38:36 +01:00
Michał Matczuk
8083fa27ee table: introduced table package
It adds support for super simple CRUD operations based on table schema model.
2018-11-14 17:09:03 +01:00
Michał Matczuk
1064db9f88 benchmark fix and update
Fixed double insert bug in BenchmarkE2EGocqlInsert. Modernized other
benchmarks to use new API that releases query where applicable. Updated
benchmark results with new version of libraries and Scylla 2.2.

Fixes #61
2018-08-23 15:20:02 +02:00
Michał Matczuk
d5caed56c3 readme: updated docs 2018-05-25 14:20:59 +02:00
Michał Matczuk
6e4a05de42 queryx: added Get, GetRelease, Select and SelectRelease helper functions
I have piggy backed with this change some docs update.

Fixes #41
2018-05-23 11:25:00 +02:00
Michał Matczuk
cf3a5ab95f readme: updated package description to match the description in gocql readme 2018-05-15 10:26:33 +02:00
Michał Matczuk
ecf0820d1d Readme update 2018-04-20 14:52:47 +02:00
Michał Matczuk
f7ee069da9 readme: title rename to GoCQLX 2017-10-02 09:35:19 +02:00
Michał Matczuk
04179dd2d0 readme: license update 2017-09-28 15:33:13 +02:00
Michał Matczuk
3351b1f9a3 migrate 2017-09-22 14:05:26 +02:00
Michał Matczuk
557674a886 qb: update builder advanced assignments 2017-09-22 09:48:19 +02:00
Michał Matczuk
faa3a42062 readme fix 2017-08-31 16:50:06 +02:00
Michał Matczuk
c4886ff8da batch: extracted AddWithPrefix 2017-08-30 16:26:30 +02:00
Michał Matczuk
0779ef4bf4 cmp: example update 2017-08-30 16:05:24 +02:00
Michał Matczuk
1da2c19fe8 query: Query return ptr 2017-08-24 12:32:37 +02:00
Michał Matczuk
ff828f9198 notice update 2017-08-24 09:56:45 +02:00
Michał Matczuk
4025a4d426 docs: whitespace fix 2017-08-23 16:07:55 +02:00
Michał Matczuk
bc289ada45 doc: example and readme fixes 2017-08-03 18:53:04 +02:00
Michał Matczuk
91cb873025 benchmark: longer benchmark with reduced allocations 2017-08-03 13:50:34 +02:00
Michał Matczuk
456ce5e2f4 updated e2e benchmarks for new Scylla 2017-08-02 13:55:03 +02:00
Michał Matczuk
fd4e0be6c8 BindStruct, BindStructMap, BindStructMap returns *Queryx 2017-08-02 11:16:31 +02:00
Michał Matczuk
f8043ef567 minor doc fix 2017-07-31 15:37:47 +02:00
Michał Matczuk
e976075998 qb: benchmark 2017-07-31 15:30:34 +02:00
Michał Matczuk
41bb8def2a qb: doc 2017-07-31 15:30:26 +02:00
Michał Matczuk
7b5d550b50 readme: build status for master branch only 2017-07-27 15:00:00 +02:00
Michał Matczuk
b05f30bb93 doc update 2017-07-25 14:35:49 +02:00
Michał Matczuk
26b3f24e21 move to scylladb 2017-07-25 08:25:58 +02:00
Michał Matczuk
f31e47d7bb simple readme and example_test 2017-07-25 08:20:16 +02:00
Michał Matczuk
582dfdc6ef travis integration 2017-07-24 13:21:29 +02:00