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
Nikita Karmatskikh
7689c7267b
format build tags according to go 1.17
2021-11-26 10:16:34 +01:00
Nikita Karmatskikh
fcefd904ca
Makefile: take GOPATH variable from go env
2021-11-26 10:16:34 +01:00
Nikita Karmatskikh
beeab600f9
qb: add named limit and per partition limit clauses
2021-11-23 11:42:34 +01:00
Michał Matczuk
e182c6eeff
makefile: run schemagen tests
2021-11-17 12:25:21 +01:00
Michał Matczuk
8477485a45
cmd/schemagen: refactoring
...
- Replace log.Faltal with error wrapping in schemagen func
- Simplify tests, use temp dir and ioutil functions, remove boilerplate code
- In test use schemagen keyspace to avoid name conflict with examples
- Change template
2021-11-17 12:25:21 +01:00
Michał Matczuk
39bf42f122
go mod update to 1.17
2021-11-17 12:25:21 +01:00
Vladimir Shteinman
1bfe101568
schemagen cli
2021-11-17 09:35:27 +01:00
Michał Matczuk
979397bc5e
qb: add support for USING TIMEOUT clause
...
In scylladb/scylla#7781 we added possibility to add timeout as part of USING spec.
This patch adds support for it by adding `Timeout` and `TimeoutNamed` functions to builders.
Fixes #194
2021-08-03 15:05:23 +02:00
Michał Matczuk
96a8de1e1e
qb: using, modernize writeCql
...
- Add writePreamble function to handle USING vs AND usages
- Use Fprintf to avoid string allocation
2021-08-03 15:05:23 +02:00
Richard Cooper
49993c1fbb
Update godoc badge link
2021-07-16 10:05:49 +02:00
Alexander Setzer
a112b4c31a
Correctly state in the GetQuery comment that it gets by primary key
2021-05-25 15:11:26 +02:00
ok32
01be91c745
GetCAS: check if the query has a build error before trying to execute it
2021-05-04 10:57:09 +02:00
Michał Matczuk
d123214401
migrate: refactor examples to use the new FromFS function
2021-04-30 11:36:21 +02:00
Michał Matczuk
fe1498fe13
migrate: add support for new Go io/fs.FS
...
This patch adds FromFS function and lets you use the new go:embed directive to add the migration files to the binary.
Also, migration tests use an in memory FS impl instead of working with tmp directories.
2021-04-30 11:19:14 +02:00
Michał Matczuk
7980a955be
github: force Go 1.16 or higher
2021-04-30 11:19:14 +02:00
Michał Matczuk
c51d7713a2
go mod update go to 1.16
2021-04-30 11:19:14 +02: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
1b6e643584
migrate: Add example
2020-12-03 13:37:56 +01:00
Michał Matczuk
9dd79fc620
migrate: Add CallbackRegister
2020-12-03 13:37:56 +01:00
Michał Matczuk
fbe7bc45b5
migrate: Remove "failed" wording from error messages
2020-12-03 13:37:56 +01:00
Michał Matczuk
d25129e2fc
migrate: Add support CQL comment callbacks
...
This patch adds a new migration event type CallComment that it triggered by adding `-- CALL <name>;` comment in a CQL file.
Fixes #101
2020-12-03 13:37:56 +01:00
Michał Matczuk
41e4a3fa11
README: Remove leading spaces
2020-12-03 13:37:56 +01: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