Commit Graph
3 Commits
Author SHA1 Message Date
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
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
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