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
alfa-alex
624fc1de9f
Fix GetQueryContext method comment ( #257 )
2024-03-28 13:12:33 +01:00
Alexander Setzer
a112b4c31a
Correctly state in the GetQuery comment that it gets by primary key
2021-05-25 15:11:26 +02:00
Michał Matczuk
69f6f201f2
dbutil: RewriteTable, generalize table.RewriteRows to copy from source table to destination table with row transformation
2020-12-03 10:48:23 +01:00
Michał Matczuk
13ef8ceaf1
table: Add RewriteRows
2020-10-30 16:38:07 +01:00
Michał Matczuk
bc762ebc01
table: Add SelectAll
2020-10-30 16:38:07 +01:00
Michał Matczuk
5a48acca36
table: Add InsertBuilder
2020-10-30 16:38:07 +01:00
Maciej Zimnoch
4ea6f42a51
Added Context variants of Query functions
2020-06-19 11:13:21 +02:00
Maciej Zimnoch
8af6506cde
table: add GetQuery shortcut to Queryx
2020-06-19 11:13:21 +02:00
Maciej Zimnoch
564db08698
table: Added shortcuts to Queryx
...
These shortucuts allows to write shorter more straightforward code.
It allows to write:
```
clusters.InsertQuery(session).BindStruct(r).ExecRelease()
```
instead of:
```
tmt, names := clusters.Insert()
session.Query(stmt,names).BindStruct(r).ExecRelease()
```
2020-06-17 16:44:48 +02:00
Michał Matczuk
cea42f14c7
Update tests to use v2
...
Signed-off-by: Michał Matczuk <michal@scylladb.com >
2020-04-29 10:54:39 +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
95d96fa939
Merge pull request #3 from hailocab/upstream-merge
...
Upstream merge
Add Session wrapper
With this patch we can now use gocqlx like:
```
session.Query(`SELECT * FROM struct_table`, nil).Get(&v)
```
instead of (old format):
```
gocqlx.Query(session.Query(`SELECT * FROM struct_table`), nil).Get(&v)
```
Signed-off-by: Michał Matczuk <michal@scylladb.com >
2020-04-21 10:07:45 +02:00
xiang.wang
27c388ea32
table: Added PrimaryKeyCmp() which returns copy of table's primaryKeyCmp.
2020-04-08 09:23:19 +02:00
xiang.wang
fc0b7be8ab
table: Added cql.builders for insert, update, delete to enable table batch timestamp at statement granularity.
2020-03-19 09:40:56 +01:00
Aleksandar Jankovic
ab2a96d9f3
table: fix data race in select builder usage
...
When table is used with SelectBuilder it triggers data race on Where()
condition usage.
This change copies underlining slices on table creation to allow safe
concurrent usage of the table.
2020-02-25 16:36:59 +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
dcec9d031f
table: added function to return table Metadata
2018-11-15 15:45:49 +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