Skip to content

Commit 691f687

Browse files
committedDec 20, 2023
Reformat ScyllaDB/Cassandra docs
1 parent eb64ffa commit 691f687

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed
 

‎README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ Database drivers run migrations. [Add a new database?](database/driver.go)
2828
* [PGX v5](database/pgx/v5)
2929
* [Redshift](database/redshift)
3030
* [Ql](database/ql)
31-
* [Cassandra](database/cassandra)
32-
* [ScyllaDB](database/cassandra)
31+
* [Cassandra / ScyllaDB](database/cassandra)
3332
* [SQLite](database/sqlite)
3433
* [SQLite3](database/sqlite3) ([todo #165](https://github.com/mattes/migrate/issues/165))
3534
* [SQLCipher](database/sqlcipher)
36-
* [MySQL/ MariaDB](database/mysql)
35+
* [MySQL / MariaDB](database/mysql)
3736
* [Neo4j](database/neo4j)
3837
* [MongoDB](database/mongodb)
3938
* [CrateDB](database/crate) ([todo #170](https://github.com/mattes/migrate/issues/170))

‎database/cassandra/README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Cassandra / ScyllaDB
22

3-
* Drop command will not work on Cassandra 2.X because it rely on
4-
system_schema table which comes with 3.X. Works for ScyllaDB.
5-
* Other commands should work properly but are **not tested**
3+
* `Drop()` method will not work on Cassandra 2.X because it rely on
4+
system_schema table which comes with 3.X
5+
* Other methods 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.
9+
10+
**ScyllaDB**
11+
12+
* No additional configuration is required since it is a drop-in replacement for Cassandra.
13+
* The `Drop()` method` works for ScyllaDB 5.1
1014

1115

1216
## Usage

0 commit comments

Comments
 (0)
Please sign in to comment.