clickhouse-migrations 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,8 +22,7 @@ For migrations' content should be used correct SQL ClickHouse queries. A few que
22
22
  $ clickhouse-migrations migrate <options>
23
23
 
24
24
  Required options
25
- --host=<name> Clickhouse hostname, in
26
- format https://clichouse
25
+ --host=<name> Clickhouse hostname (ex. https://clickhouse)
27
26
  --port=<number> Port
28
27
  --user=<name> Username
29
28
  --password=<password> Password
@@ -31,18 +30,17 @@ For migrations' content should be used correct SQL ClickHouse queries. A few que
31
30
  --migrations-home=<dir> Migrations' directory
32
31
 
33
32
  Environment variables
34
- instead options can be used environment variables
33
+ Instead of options can be used environment variables.
35
34
  CH_MIGRATIONS_HOST Clickhouse hostname (--host)
36
35
  CH_MIGRATIONS_PORT Port (--port)
37
36
  CH_MIGRATIONS_USER Username (--user)
38
37
  CH_MIGRATIONS_PASSWORD Password (--password)
39
38
  CH_MIGRATIONS_DB Database name (--db)
40
- CH_MIGRATIONS_HOME Migrations' directory
41
- (--migrations-home)
39
+ CH_MIGRATIONS_HOME Migrations' directory (--migrations-home)
42
40
 
43
41
  Examples
44
42
  clickhouse-migrations migrate --host=http://localhost
45
43
  --port=8123 --user=default --password=''
46
44
  --db=analytics --migrations-home=/app/clickhouse/migrations
47
45
 
48
- ```
46
+ clickhouse-migrations migrate
package/lib/migrate.js CHANGED
@@ -304,16 +304,16 @@ var migration = function (migrations_home, host, port, username, password, db_na
304
304
  }); };
305
305
  var migrate = function () {
306
306
  var program = new Command();
307
- program.name('clickhouse-migrations').description('ClickHouse migrations.').version('0.1.4');
307
+ program.name('clickhouse-migrations').description('ClickHouse migrations.').version('0.1.5');
308
308
  program
309
309
  .command('migrate')
310
- .description('apply migrations.')
311
- .requiredOption('--host <name>', 'clickhouse hostname in format http://clickhouse', process.env.CH_MIGRATIONS_HOST)
312
- .requiredOption('--port <number>', 'port', process.env.CH_MIGRATIONS_PORT)
313
- .requiredOption('--user <name>', 'username', process.env.CH_MIGRATIONS_USER)
314
- .requiredOption('--password <password>', 'password', process.env.CH_MIGRATIONS_PASSWORD)
315
- .requiredOption('--db <name>', 'database name', process.env.CH_MIGRATIONS_DB)
316
- .requiredOption('--migrations-home <dir>', 'migrations directory', process.env.CH_MIGRATIONS_HOME)
310
+ .description('Apply migrations.')
311
+ .requiredOption('--host <name>', 'Clickhouse hostname (ex. https://clickhouse)', process.env.CH_MIGRATIONS_HOST)
312
+ .requiredOption('--port <number>', 'Port', process.env.CH_MIGRATIONS_PORT)
313
+ .requiredOption('--user <name>', 'Username', process.env.CH_MIGRATIONS_USER)
314
+ .requiredOption('--password <password>', 'Password', process.env.CH_MIGRATIONS_PASSWORD)
315
+ .requiredOption('--db <name>', 'Database name', process.env.CH_MIGRATIONS_DB)
316
+ .requiredOption('--migrations-home <dir>', "Migrations' directory", process.env.CH_MIGRATIONS_HOME)
317
317
  .action(function (options) { return __awaiter(void 0, void 0, void 0, function () {
318
318
  return __generator(this, function (_a) {
319
319
  switch (_a.label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickhouse-migrations",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "CLI NodeJS ClickHouse Migrations",
5
5
  "bin": {
6
6
  "clickhouse-migrations": "lib/cli.js"