Dmitry Kropachev
ab73391f35
Add schemagen ssl options ( #294 )
2024-10-01 06:54:15 -04:00
Dmitry Kropachev
177161646e
Update README.md schemagen installation and usage ( #292 )
...
After `gocqlx` switched to `scylladb/gocql` driver due to the presence `replace`
dirrective in `go.mod` user can't ue `go install` anymore.
2024-10-01 06:51:56 -04:00
Dmitry Kropachev
ee39c9d541
Add --query-timeout and --connection-timeout options ( #293 )
2024-10-01 06:49:16 -04:00
Guy Shtub
877066f0c8
adding lesson link to readme file ( #181 )
2024-09-30 16:26:38 -04:00
Yemin Li
cc68867ad0
expose SelectBuilder for table Get operation ( #251 )
...
* expose select builder for get
* add comment
2024-09-30 16:25:14 -04:00
sylwiaszunejko
3ea85fdd5d
Bump scylladb/gocql version to v1.14.4
2024-09-20 14:11:37 +02:00
Samuel
7d9ff7c98c
feat(migrate): add pending migrations function ( #286 )
2024-09-13 10:32:35 -04:00
Sylwia Szunejko
6ba176a175
Add option to add ALLOW FILTERING to the update query ( #290 )
2024-09-10 10:13:54 -04:00
Jack Philippi
c6a436b905
Updated test to remove typo
2024-08-26 08:59:43 +02:00
Jack Philippi
3007fd5ab5
Fixed typo in error
2024-08-26 08:59:43 +02:00
Jack Philippi
589b2aa06a
Updated error message for inconsistent migrations
2024-08-26 08:59:43 +02: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
653faf1e03
Fix schemagen and test generated code
2024-06-28 13:26:45 +02:00
Dmitry Kropachev
fcd76082db
Switch to use scylla image instead of scylla version ( #277 )
...
Currently Makefile uses SCYLLA_VERSION to define docker image.
Switching to SCYLLA_IMAGE instead will help to target enterprise, nightly or custom image
2024-06-28 08:15:52 +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
6a60650668
Marshal/Unmarshal missing UDT fields as null instead of failing in unsafe mode
...
We can't return an error in case a field is added to the UDT,
otherwise existing code would break by simply altering the UDT in the
database. For extra fields at the end of the UDT put nulls to be in
line with gocql, but also python-driver and java-driver.
In gocql it was fixed in d2ed1bb74f
2024-06-25 12:32:16 +02:00
Dmitry Kropachev
c6f942afc7
Introduce Unsafe method on Queryx
...
It enables local control over `unsafe` mode for .Bind methods of `Queryx` and iterators
spawn by it.
2024-06-25 12:32:16 +02:00
sylwiaszunejko
a222c1f067
Marshal missing UDT fields as null instead of failing
...
We can't return an error in case a field is added to the UDT,
otherwise existing code would break by simply altering the UDT in the
database. For extra fields at the end of the UDT put nulls to be in
line with gocql, but also python-driver and java-driver.
In gocql it was fixed in d2ed1bb74f
2024-06-25 12:32:16 +02:00
Dmitry Kropachev
2eee0b00f1
Add additional methods to Batch similar to what exists on Queryx
2024-06-25 08:25:49 +02:00
Dmitry Kropachev
207ba8723e
Move from gocql/gocql to scylladb/gocql
2024-06-19 09:19:17 +02:00
Dmitry Kropachev
ab80d70106
Update golangci-lint and turn it on in CI
2024-06-19 08:08:54 +02:00
sylwiaszunejko
a9ab270196
Add linter to the CI
2024-06-14 17:16:52 +02:00
sylwiaszunejko
49188e50b7
Bump SCYLLA_VERSION to 6.0.0
2024-06-14 17:16:52 +02:00
alfa-alex
624fc1de9f
Fix GetQueryContext method comment ( #257 )
2024-03-28 13:12:33 +01:00
Ingmar Wittkau
8bda349563
Implement schemagen ignore-indexes flag
...
Co-authored by Alexander Setzer <Alexander.Setzer@alfatraining.de >
2024-03-17 17:58:50 +02:00
Ingmar Wittkau
e8f30f8dda
Implement schemagen ignore-names flag
...
Co-authored by Alexander Setzer <Alexander.Setzer@alfatraining.de >
2024-03-17 17:58:50 +02:00
alireza khojastehfar
12811b5554
Update README.md ( #263 )
...
fixed naming mistake of `camel case` to `snake case`
2024-02-20 14:59:42 +01:00
Gabriel Nelle
dec046bd85
add Batch wrapper with BindStruct method
2023-03-09 11:50:46 +01:00
pavle995
fc92258512
Fixed issue with collection types in udt. empty type colums skiped. Added test for udt.
2022-06-30 13:22:58 +02:00
Pavle Kosutic
a62ba24cf9
Added tests, example and updated a few types
2022-06-30 13:22:58 +02:00
Pavle Kosutic
2942397ab6
Code generation for structs for tables
2022-06-30 13:22:58 +02:00
Niklas Semmler
3e151149a0
add user password authentication to schemagen
2022-06-30 13:22:03 +02:00
Michal Jan Matczuk
42b1015966
gh: disable linter
2022-05-04 11:53:32 +02:00
Talha Altınel
c43e18b2d3
Update GH actions
...
* updating github actions
* cleaning the file from makefile
* bump to v1.45.2
2022-05-04 11:49:47 +02:00
Kevin Barbour
5cffcdf5e4
queryx: add note to ExecCAS docs
...
relates to: #228
2022-04-25 11:08:48 +02:00
Jeremy Stone
2ac4afd7d5
update documentation with examples of non-persisted fields
2022-04-13 17:03:22 +02:00
yemin.li
c965fdf183
fix using timeout order in select stmt
2022-03-24 09:22:03 +01:00
Vladimir Shteinman
25d81de30e
Fix typo in test
2022-03-01 15:34:41 +01:00
Drahflow
4c67e8b586
Force metadata retrieval for CAS queries
...
... otherwise the [applied] column is not noticed
and setting of Iter.applied is skipped.
2022-02-21 16:30:17 +01:00
Drahflow
8054b9d47b
Change tuple-element parameter names to name[idx]
2022-02-17 09:57:52 +01:00
Drahflow
58908485da
Tests for tuple comparisons
2022-02-17 09:57:52 +01:00
Drahflow
72221591cc
Add <Cmp>TupleNamed for range-queries on tuples
2022-02-17 09:57:52 +01:00
Gabriel Nelle
b56c610884
qb: avoid data race if rendering query builder in different go routines
2022-02-17 09:56:39 +01:00
Drahflow
cee96feae9
Make qb.DESC of type qb.Order, not bool
2022-02-11 10:33:00 +01:00
Serhii Polishchuk
6ca5e2ae91
gocqlxtest: add test keyspace name flag
2021-12-31 10:55:37 +01:00
Michał Matczuk
2b885ac61b
dbutil: RewriteTable add possibility to skip rows
2021-12-20 15:42:10 +01:00
Michał Matczuk
9a6aae51ed
migrate: add CallbackRegister::Find
2021-12-20 14:23:13 +01:00
Nikita Karmatskikh
e502c7cc40
transformer: add transformer for unsetting empty values
2021-11-26 10:16:34 +01:00
Nikita Karmatskikh
504f6523d9
queryx: add binding transformer
2021-11-26 10:16:34 +01:00
Nikita Karmatskikh
5e98fb6f71
queryx: make bindStructArgs and bindMapArgs as methods
2021-11-26 10:16:34 +01:00