Commit Graph

8 Commits

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