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
sylwiaszunejko
7072863b0c
Replace Unsafe with Strict mechanism
...
Previously by default the presence of a missing field in
a udt would result in an error reported. The Unsafe
mechanism could be used to ignore these fields.
This PR changes the default behavior to ignoring missing
fields and only reporting an error if Strict mode is used.
This approach is in line with the gocql.
2024-06-25 15:29:10 +02:00
Dmitry Kropachev
ab80d70106
Update golangci-lint and turn it on in CI
2024-06-19 08:08:54 +02:00
Gabriel Nelle
dec046bd85
add Batch wrapper with BindStruct method
2023-03-09 11:50:46 +01:00
Pavle Kosutic
a62ba24cf9
Added tests, example and updated a few types
2022-06-30 13:22:58 +02:00
Vladimir Shteinman
25d81de30e
Fix typo in test
2022-03-01 15:34:41 +01:00
Nikita Karmatskikh
e502c7cc40
transformer: add transformer for unsetting empty values
2021-11-26 10:16:34 +01:00
Nikita Karmatskikh
7689c7267b
format build tags according to go 1.17
2021-11-26 10:16:34 +01:00
Michał Matczuk
412899a9b2
example_test: lwtLock, add serial consistency
2020-12-03 13:37:56 +01:00
Michał Matczuk
233aa4295f
example_test: Modernize with using Query(session) pattern
2020-12-03 13:37:56 +01: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
Maciej Zimnoch
52c5f6873a
queryx: Added CAS functions ( #98 )
...
Added ExecCAS, ExecCASRelease, GetCAS, GetCASRelease functions
suitable for INSERT ... IF NOT EXISTS and UPDATE's containing IF statement.
Functions returns information wheter query was applied or not, together
with pre-image.
Fixes #98
2020-04-22 11:57:35 +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
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
d5caed56c3
readme: updated docs
2018-05-25 14:20:59 +02:00
Michał Matczuk
fa402f3f0c
qb: using ttl timestamp
...
Fixes : #40
2018-05-25 14:05:55 +02:00
Michał Matczuk
9cfd46fcdd
gocqlxtest: test helpers extracted to separate package
2018-05-24 14:36:14 +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
Josh Giles
cbe2659e0d
Do not release queries in Get/Select. Fix #25
...
Releasing query objects in Get/Select could easily lead to
double-releases, which can cause dangerous and tricky data races.
Remove the query field of Iterx and its usages (all release-related).
This is a breaking API change, because it removes the exported method
ReleaseQuery.
Update documenting examples to demonstrate the deferred query release
pattern clients can use to manage query release.
2017-11-13 10:13:38 +01:00
Michał Matczuk
557674a886
qb: update builder advanced assignments
2017-09-22 09:48:19 +02:00
Michał Matczuk
9e40fcfed4
license: added license header
2017-09-21 21:43:27 +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
bc289ada45
doc: example and readme fixes
2017-08-03 18:53:04 +02:00
Michał Matczuk
804cfad37c
qb: batch builder
2017-08-03 18:46:29 +02:00
Michał Matczuk
fd4e0be6c8
BindStruct, BindStructMap, BindStructMap returns *Queryx
2017-08-02 11:16:31 +02:00
Michał Matczuk
711e3369d6
BindStructMap
2017-08-02 10:24:27 +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
08b131c5ee
mapper: moved mapper to separate file, added snake case mapper
...
Performance is comparable to sting.ToLower
BenchmarkSnakeCase-4 200000 5922 ns/op 1216 B/op 97 allocs/op
BenchmarkToLower-4 300000 5418 ns/op 704 B/op 74 allocs/op
2017-07-26 11:23:17 +02:00
Michał Matczuk
f3b13bf31b
queryx
2017-07-25 14:12:07 +02:00
Michał Matczuk
9676daf60d
example use query rebind
2017-07-25 11:08:53 +02:00
Michał Matczuk
51c33ef077
release query
2017-07-25 09:13:47 +02:00
Michał Matczuk
26b3f24e21
move to scylladb
2017-07-25 08:25:58 +02:00
Michał Matczuk
cab262b69a
boo
2017-07-25 08:25:58 +02:00
Michał Matczuk
f31e47d7bb
simple readme and example_test
2017-07-25 08:20:16 +02:00