Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

feat(cassandra): support for multistatement migrations #280

Closed
wants to merge 5 commits into from

Conversation

JensRantil
Copy link
Contributor

@JensRantil JensRantil commented Sep 17, 2017

Unfortunately [1] doesn't support multiple semicolon-separated queries, so
they must be executed individually. While this isn't perfect, it covers a
lot of cases where one would like to executed multiple statements in a
single migration.

[1] https://godoc.org/github.com/gocql/gocql#Session.Query

Cred to @LarsAlmgren for helping out with this.

Best-practise according to `gofmt`.
According to `gofmt`.
Golang best-practise. Cleanup made by `gofmt`.
...to be more readable in editor, not just Github.
Unfortunately [1] doesn't support multiple semicolon-separated queries,
so they must be executed individually. While this isn't perfect, it
covers a lot of cases where one would like to executed multiple
statements in a single migration.

[1] https://godoc.org/github.com/gocql/gocql#Session.Query
@mattes
Copy link
Owner

mattes commented Sep 18, 2017

Closing in favor of #276

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants