Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "dbmate", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "A lightweight, framework-agnostic database migration tool", | ||
@@ -27,10 +27,10 @@ "repository": "https://github.com/amacneil/dbmate", | ||
"optionalDependencies": { | ||
"@dbmate/linux-ia32": "2.3.0", | ||
"@dbmate/linux-x64": "2.3.0", | ||
"@dbmate/linux-arm": "2.3.0", | ||
"@dbmate/linux-arm64": "2.3.0", | ||
"@dbmate/darwin-x64": "2.3.0", | ||
"@dbmate/darwin-arm64": "2.3.0", | ||
"@dbmate/win32-x64": "2.3.0" | ||
"@dbmate/linux-ia32": "2.4.0", | ||
"@dbmate/linux-x64": "2.4.0", | ||
"@dbmate/linux-arm": "2.4.0", | ||
"@dbmate/linux-arm64": "2.4.0", | ||
"@dbmate/darwin-x64": "2.4.0", | ||
"@dbmate/darwin-arm64": "2.4.0", | ||
"@dbmate/win32-x64": "2.4.0" | ||
} | ||
} |
@@ -256,2 +256,29 @@ # Dbmate | ||
To work with ClickHouse cluster, there are 4 connection query parameters that can be supplied: | ||
- `on_cluster` - Indicataion to use cluster statements and replicated migration table. (default: `false`) If this parameter is not supplied, other cluster related query parameters are ignored. | ||
```sh | ||
DATABASE_URL="clickhouse://username:password@127.0.0.1:9000/database_name?on_cluster" | ||
DATABASE_URL="clickhouse://username:password@127.0.0.1:9000/database_name?on_cluster=true" | ||
``` | ||
- `cluster_macro` (Optional) - Macro value to be used for ON CLUSTER statements and for the replciated migration table engine zookeeper path. (default: `{cluster}`) | ||
```sh | ||
DATABASE_URL="clickhouse://username:password@127.0.0.1:9000/database_name?on_cluster&cluster_macro={my_cluster}" | ||
``` | ||
- `replica_macro` (Optional) - Macro value to be used for the replica name in the replciated migration table engine. (default: `{replica}`) | ||
```sh | ||
DATABASE_URL="clickhouse://username:password@127.0.0.1:9000/database_name?on_cluster&replica_macro={my_replica}" | ||
``` | ||
- `zoo_path` (Optional) - The path to the table migration in ClickHouse/Zoo Keeper. (default: `/clickhouse/tables/<cluster_macro>/{table}`) | ||
```sh | ||
DATABASE_URL="clickhouse://username:password@127.0.0.1:9000/database_name?on_cluster&zoo_path=/zk/path/tables" | ||
``` | ||
[See other supported connection options](https://github.com/ClickHouse/clickhouse-go#dsn). | ||
@@ -258,0 +285,0 @@ |
34840
576