Skip to content

Commit 7a72550

Browse files
committedJun 25, 2023
add tests for scylladb. add scylladb to docs
1 parent 691bc77 commit 7a72550

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Database drivers run migrations. [Add a new database?](database/driver.go)
2929
* [Redshift](database/redshift)
3030
* [Ql](database/ql)
3131
* [Cassandra](database/cassandra)
32+
* [ScyllaDB](database/cassandra)
3233
* [SQLite](database/sqlite)
3334
* [SQLite3](database/sqlite3) ([todo #165](https://github.com/mattes/migrate/issues/165))
3435
* [SQLCipher](database/sqlcipher)

‎database/cassandra/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Cassandra
1+
# Cassandra / ScyllaDB
22

33
* Drop command will not work on Cassandra 2.X because it rely on
4-
system_schema table which comes with 3.X
4+
system_schema table which comes with 3.X. Works as expected for ScyllaDB.
55
* Other commands should work properly but are **not tested**
66
* The Cassandra driver (gocql) does not natively support executing multiple statements in a single query. To allow for multiple statements in a single migration, you can use the `x-multi-statement` param. There are two important caveats:
77
* This mode splits the migration text into separately-executed statements by a semi-colon `;`. Thus `x-multi-statement` cannot be used when a statement in the migration contains a string with a semi-colon.
88
* The queries are not executed in any sort of transaction/batch, meaning you are responsible for fixing partial migrations.
9+
* For ScyllaDB no additional configuration required as it is a drop-in replacement for Cassandra.
910

1011

1112
## Usage

‎database/cassandra/cassandra_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ var (
2525
// Although Cassandra 2.x is supported by the Apache Foundation,
2626
// the migrate db driver only supports Cassandra 3.x since it uses
2727
// the system_schema keyspace.
28+
// last ScyllaDB version tested is 5.1.11
2829
specs = []dktesting.ContainerSpec{
2930
{ImageName: "cassandra:3.0", Options: opts},
3031
{ImageName: "cassandra:3.11", Options: opts},
32+
{ImageName: "scylladb/scylla:5.1.11", Options: opts},
3133
}
3234
)
3335

0 commit comments

Comments
 (0)
Please sign in to comment.