Michał Matczuk
7999b5dd4e
makefile: modernized check-fmt
2018-05-22 15:03:59 +02:00
Michał Matczuk
cca99d4a42
makefile: added megacheck
2018-05-22 15:03:59 +02:00
SpiritOfWill
5526e60464
Add aggregation function to select query builder ( #39 )
...
qb: added min, max, avg, sum, and count to SelectBuilder
2018-05-15 14:07:35 +02:00
Michał Matczuk
cf3a5ab95f
readme: updated package description to match the description in gocql readme
2018-05-15 10:26:33 +02:00
Michał Matczuk
ecf0820d1d
Readme update
2018-04-20 14:52:47 +02:00
Josh Giles
12d360a0c3
Support for literals in INSERT and UPDATE and comparisons
...
The 'value' interface represents a CQL value for use in a comparison,
update, or intitialization operation. A consistent interface for this
allows us to easily support specifying default-named, custom-named,
literal, and evaluated-function values in all these contexts.
Parameters to Func should probably also be values to support full
composition, but that would be a breaking change because Func's
properties are exposed.
The value interface could itself be exposed if we wanted to allow
clients to pass their own values to SetValue, etc, but for now it is a
package-internal abstraction.
BLA
2018-04-20 14:52:47 +02:00
Eric Renard
9fa5432a65
fix query order when using ttl and unique
2017-12-28 11:16:54 +01:00
Michał Matczuk
ca0bd49565
migrate: replace tinyint with int
...
Tinyint is not supported on scylla enterprise.
2017-12-20 16:03:08 +01:00
Vasileios Karagkounis
cab01c8d25
Provide feedback if no files or statements found ( #32 )
...
Provide feedback if no migration files were found
2017-12-19 09:57:50 +01:00
Josh Giles
6051038fa5
Add ColumnAs for 'SELECT col AS name' queries. ( #24 )
...
Add As helper for 'SELECT col AS name' queries
Clients could do this hackily before by manually passing "col AS name",
but it isn't clearly supported.
2017-12-15 09:53:37 +01:00
Justin Nuß
439bce4bdc
avoid one allocation when binding structs
2017-12-15 09:51:32 +01:00
Michał Matczuk
3a3f0a8f1d
travis: set go to 1.x
2017-11-16 13:11:00 +01:00
Michał Matczuk
cdb91625bf
qb: batch add ability to add raw statements
2017-11-16 13:08:23 +01: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
255429a93c
Merge pull request #20 from danielsoro/move-var-to-const
...
Moving var to const for migration's info query and schema
2017-10-26 09:38:02 -07:00
Daniel Cunha (soro)
d14aa34200
Moved var to const
2017-10-25 09:28:13 -02:00
Michał Matczuk
a66169d3ba
Update iterx.go
...
iter: doc update
2017-10-02 12:46:25 +02:00
Michał Matczuk
f7ee069da9
readme: title rename to GoCQLX
2017-10-02 09:35:19 +02:00
Michał Matczuk
04179dd2d0
readme: license update
2017-09-28 15:33:13 +02:00
Michał Matczuk
1bcd8714dc
Merge pull request #18 from scylladb/mmt/select_err_not_found
...
iterx: ErrNotFound for Get only
2017-09-28 15:20:18 +02:00
Michał Matczuk
3ce82982bb
iterx: ErrNotFound for Get only
2017-09-28 15:10:47 +02:00
Michał Matczuk
9604635e8e
migrate: renamed table
2017-09-25 10:01:48 +02:00
Michał Matczuk
f2af2384ed
iter: ErrNotFound bug fix
2017-09-22 15:02:12 +02:00
Michał Matczuk
eef2c77a26
test-fixtures renamed to testdata
2017-09-22 14:30:04 +02:00
Michał Matczuk
33a8025b32
Merge pull request #17 from scylladb/mmt/migrate
...
migrate
2017-09-22 14:28:13 +02:00
Michał Matczuk
8da6902469
travis: drop of go 1.7
2017-09-22 14:11:44 +02:00
Michał Matczuk
3351b1f9a3
migrate
2017-09-22 14:05:26 +02:00
Michał Matczuk
fd5efe40eb
Merge pull request #16 from scylladb/mmt/counters
...
qb advanced updates
2017-09-22 09:54:18 +02:00
Michał Matczuk
557674a886
qb: update builder advanced assignments
2017-09-22 09:48:19 +02:00
Michał Matczuk
fdb26806a9
qb: extracted function from cmp
2017-09-22 09:35:02 +02:00
Michał Matczuk
9e40fcfed4
license: added license header
2017-09-21 21:43:27 +02:00
Michał Matczuk
0b29eb569a
makefile: check split
2017-09-21 21:33:43 +02:00
Michał Matczuk
46603152a1
error: %s replaced with %q in missing field errors
2017-09-21 21:29:44 +02:00
Michał Matczuk
faa3a42062
readme fix
2017-08-31 16:50:06 +02:00
Michał Matczuk
196bc4e87c
Merge pull request #14 from scylladb/mmt/batch_fix
...
batch: extracted AddWithPrefix
2017-08-30 16:29:26 +02:00
Michał Matczuk
c4886ff8da
batch: extracted AddWithPrefix
2017-08-30 16:26:30 +02:00
Michał Matczuk
11aa459275
Merge pull request #13 from scylladb/mmt/func
...
Cmp functions support
2017-08-30 16:10:59 +02:00
Michał Matczuk
0779ef4bf4
cmp: example update
2017-08-30 16:05:24 +02:00
Michał Matczuk
ea8a9e9845
cmp: token builder
2017-08-30 16:05:14 +02:00
Michał Matczuk
2e903a54e0
cmp: functions support
2017-08-30 16:05:14 +02:00
Michał Matczuk
995a93e49b
travis: go 1.9
2017-08-30 12:23:50 +02:00
Michał Matczuk
943e9d2cc0
Merge pull request #12 from scylladb/mmt/query_prt
...
query: Query return ptr
2017-08-24 12:47:08 +02:00
Michał Matczuk
1da2c19fe8
query: Query return ptr
2017-08-24 12:32:37 +02:00
Michał Matczuk
73666e5f16
Merge pull request #9 from scylladb/mmt/asf_tm
...
notice update
2017-08-24 12:22:26 +02:00
Michał Matczuk
10fe08845f
Merge pull request #11 from scylladb/mmt/err_not_found
...
Return ErrNotFound for no results
2017-08-24 11:02:10 +02:00
Michał Matczuk
e079a7b36a
iter: return ErrNotFound for no results
2017-08-24 10:53:56 +02:00
Michał Matczuk
ff828f9198
notice update
2017-08-24 09:56:45 +02:00
Michał Matczuk
4025a4d426
docs: whitespace fix
2017-08-23 16:07:55 +02:00
Michał Matczuk
0aeec73b2a
Merge pull request #10 from scylladb/mmt/unsafe
...
iter: unsafe
2017-08-23 15:36:25 +02:00
Michał Matczuk
4be0a35207
iter: unsafe
2017-08-23 15:26:16 +02:00