Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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