Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gocqlx #95

Merged
merged 3 commits into from
May 17, 2019
Merged

Use gocqlx #95

merged 3 commits into from
May 17, 2019

Conversation

dahankzter
Copy link
Contributor

@dahankzter dahankzter commented May 15, 2019

Refactored to use github.com/scylladb/gocqlx/qb and a new Store interface is implemented which in essence replaces the preivous Session.

Fixes: #95

@dahankzter dahankzter requested a review from penberg May 15, 2019 12:25
@dahankzter dahankzter force-pushed the use_gocqlx branch 5 times, most recently from 959c209 to 89043b0 Compare May 16, 2019 12:06
Henrik Johansson added 3 commits May 16, 2019 20:04
The builder github.com/scylladb/gocqlx/qb is now used to generate
queries instead of the string manipulation trickery.

The Mutate and Check functions now take a builder instead of raw
string queries.
The session is removed and a store interface is introduced.
This store interface is small and isolated and allows for the
caller to generate arbitrary queries using the builder.

The store encapsulates the two internal stores and performs
checks using data from these two instances.

Currently the internal stores are both cql based but any
backing storage can be implemented without affecting the
surrounding calling code.
@penberg penberg merged commit 2f4f5e5 into master May 17, 2019
@penberg penberg deleted the use_gocqlx branch December 11, 2019 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants