Commit Graph
125 Commits
Author SHA1 Message Date
Michał Matczuk 5aa68226b4 travis: bump go to 1.11.1 2018-10-23 15:57:24 +02:00
Michał Matczuk bbb21ea945 CompileNamedQuery: fix doc string to include escaping ::
Fixes #56
2018-10-23 15:52:54 +02:00
Michał Matczuk 620bef0b6c workaround for gocql bug gocql/gocql#1161 2018-08-23 15:20:02 +02:00
Michał Matczuk 1064db9f88 benchmark fix and update
Fixed double insert bug in BenchmarkE2EGocqlInsert. Modernized other
benchmarks to use new API that releases query where applicable. Updated
benchmark results with new version of libraries and Scylla 2.2.

Fixes #61
2018-08-23 15:20:02 +02:00
Michał Matczuk f8424b00b9 added golangci (#59) 2018-08-07 16:16:24 +02:00
Vincent Rischmann 2f13a81c46 Add qb.ContainsKey to query keys in a map (#57)
qb: add ContainsKey and ContainsKeyNamed
2018-07-28 06:56:44 +02:00
Michał Matczuk 9b530002fa travis: fixed go to 1.10.x 2018-07-28 06:54:20 +02:00
Michał Matczuk 47c22c9fd2 makefile: switched to golangci-lint 2018-07-28 06:54:20 +02:00
Henrik Johansson a9f91f5f4b generated an initial go.mod file.
Fixes: #46
2018-06-01 12:02:46 +02: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 e8ffe4afe9 makefile: added reflectx tests 2018-05-25 11:17:07 +02:00
Michał Matczuk daad194304 reflectx: fixes to items reported by megacheck 2018-05-25 11:17:07 +02:00
Michał Matczuk aef66f4663 reflectx: code ported from github.com/jmoiron/sqlx a2429ba
Depending on sqlx makes users pull SQL related code that is usually not
needed. Tools like dep make it easier by explicitly listing relevant
subpackages but the code needs to be downloaded anyway.
2018-05-25 11:17:07 +02:00
Michał Matczuk 1fec441dbc makefile: synchronise testing of packages
Packages are tested in parallel by default, as we have integration tests
in root package and migrate it fails sometimes.
2018-05-24 14:36:14 +02:00
Michał Matczuk 512f8f1e25 travis: scyla disable in-memory mode 2018-05-24 14:36:14 +02:00
Michał Matczuk 83026b240e travis: scylla log to file 2018-05-24 14:36:14 +02:00
Michał Matczuk b4347d2757 migrate: migration integration tests 2018-05-24 14:36:14 +02:00
Michał Matczuk 9cfd46fcdd gocqlxtest: test helpers extracted to separate package 2018-05-24 14:36:14 +02:00
Michał Matczuk e74702cb6a migrate: migration callbacks
Callback enables interrupting the migration process and executing code
while migrating.
2018-05-23 16:02:40 +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
Michał Matczuk 5739e64887 makefile: added benchmarks target 2018-05-23 09:39:22 +02:00
Michał Matczuk a8febbc71e testing: benchmarks moved to separate files 2018-05-23 09:39:22 +02:00
Michał Matczuk 444d07da6a travis: scylla update to 2.1 2018-05-22 16:17:51 +02:00
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