Commit Graph

16 Commits

Author SHA1 Message Date
Dmitry Kropachev
b0b3ded8da add ContextBatch api to create batch with context (#326) 2025-06-11 06:36:46 -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
Dmitry Kropachev
ab80d70106 Update golangci-lint and turn it on in CI 2024-06-19 08:08:54 +02:00
Michał Matczuk
979397bc5e qb: add support for USING TIMEOUT clause
In scylladb/scylla#7781 we added possibility to add timeout as part of USING spec.
This patch adds support for it by adding `Timeout` and `TimeoutNamed` functions to builders.

Fixes #194
2021-08-03 15:05:23 +02:00
Maciej Zimnoch
4ea6f42a51 Added Context variants of Query functions 2020-06-19 11:13:21 +02:00
Maciej Zimnoch
4f4f94e2e6 qb: Added shortcuts to Queryx
It allows to write shorter and more straightforward code.
Instead writing:

```
session.Query(qb.Select("cluster").Columns("id").ToCql())
```

you can write:

```
qb.Select("cluster").Columns("id").Query(session)
```
2020-06-17 16:44:48 +02:00
xiang.wang
1083dcf024 qb.BatchBuilder: Remove deprecated flag and add comments on its limitation and warning 2020-06-05 15:46:37 +02:00
xiang.wang
d76ea6c678 Specify explicitly that use gocql.Session.NewBatch instead of the deprecated BatchBuilder. 2020-05-29 13:05:01 +02:00
Michał Matczuk
9655ae5b49 qb: Deprecate Batch in favour of session.NewBatch
Signed-off-by: Michał Matczuk <michal@scylladb.com>
2020-04-22 10:09:23 +02:00
Michał Matczuk
1668ca5832 Updated golandci-lint to 1.21.0
Signed-off-by: Michał Matczuk <michal@scylladb.com>
2019-11-07 16:13:50 -08:00
Michał Matczuk
fa402f3f0c qb: using ttl timestamp
Fixes: #40
2018-05-25 14:05:55 +02:00
Michał Matczuk
cca99d4a42 makefile: added megacheck 2018-05-22 15:03:59 +02:00
Michał Matczuk
cdb91625bf qb: batch add ability to add raw statements 2017-11-16 13:08:23 +01:00
Michał Matczuk
9e40fcfed4 license: added license header 2017-09-21 21:43:27 +02:00
Michał Matczuk
c4886ff8da batch: extracted AddWithPrefix 2017-08-30 16:26:30 +02:00
Michał Matczuk
804cfad37c qb: batch builder 2017-08-03 18:46:29 +02:00