pgsync 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pgsync might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ecb467f4d3112edfcfebe19913e29daeddfe1e4cc10e18bd9e8850fbceced57
4
- data.tar.gz: 4d8309dec9e8238074267baf583fe333c7b1d3300ad80398748e15905eb1e539
3
+ metadata.gz: e3ef4779b0d0962cfb0a23bb8e1ec4e6a03923e1324a77280499d3c023aa7673
4
+ data.tar.gz: 59aa2f0868e3a1a920547326a49b86460ab2d8349eb0be68989899ca3bf7ada2
5
5
  SHA512:
6
- metadata.gz: 145eb31e2565257a5adedc05c1308692dffb1e0785728ecd38230bb23c34c4ba6ecf08512201f707f457b136e0b7a22ca511b46fb7834f2045c041ff43dd6ccc
7
- data.tar.gz: cde51dee36149f9f8c21e26eecd504de68d8a47c2524f084b74962d7ceae1a01b59841261fc6c112cf94b31a89f55b9a991c05d1af0db41c46ed615fc56e888f
6
+ metadata.gz: 9c6761c05533930479d39fcc318bd1c2601afa06ba50379c94bdaa69e3751fa3229559aa31806778cf17bdf79af0510bdbcb5d0c33dd6e4fdb1e164cda9ea49f
7
+ data.tar.gz: f8509b918137d97f80044ecac181a9499c128891d33467d91f2f74e6e49248f2ebbacee8bf6233c959c923d583ef8e14cd76b25d19b6b58c0d4166a7cc81af56
@@ -1,3 +1,7 @@
1
+ ## 0.6.5 (2020-07-10)
2
+
3
+ - Improved help
4
+
1
5
  ## 0.6.4 (2020-06-10)
2
6
 
3
7
  - Log SQL with `--debug` option
data/README.md CHANGED
@@ -390,6 +390,10 @@ Also check out:
390
390
 
391
391
  Inspired by [heroku-pg-transfer](https://github.com/ddollar/heroku-pg-transfer).
392
392
 
393
+ ## History
394
+
395
+ View the [changelog](https://github.com/ankane/pgsync/blob/master/CHANGELOG.md)
396
+
393
397
  ## Contributing
394
398
 
395
399
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
@@ -39,42 +39,74 @@ module PgSync
39
39
  def slop_options
40
40
  o = Slop::Options.new
41
41
  o.banner = %{Usage:
42
- pgsync [options]
42
+ pgsync [tables,groups] [sql] [options]}
43
43
 
44
- Options:}
45
- o.string "-d", "--db", "database"
46
- o.string "-t", "--tables", "tables to sync"
47
- o.string "-g", "--groups", "groups to sync"
48
- o.integer "-j", "--jobs", "number of tables to sync at a time"
44
+ # not shown
45
+ o.string "-t", "--tables", "tables to sync", help: false
46
+ o.string "-g", "--groups", "groups to sync", help: false
47
+
48
+ o.separator ""
49
+ o.separator "Table options:"
50
+ o.string "--exclude", "tables to exclude"
49
51
  o.string "--schemas", "schemas to sync"
50
- o.string "--from", "source"
51
- o.string "--to", "destination"
52
- o.string "--exclude", "exclude tables"
53
- o.string "--config", "config file"
54
- o.boolean "--to-safe", "accept danger", default: false
55
- o.boolean "--debug", "debug", default: false
56
- o.boolean "--list", "list", default: false
57
- o.boolean "--overwrite", "overwrite existing rows", default: false, help: false
52
+ o.boolean "--all-schemas", "sync all schemas", default: false
53
+
54
+ o.separator ""
55
+ o.separator "Row options:"
56
+ o.boolean "--overwrite", "overwrite existing rows", default: false
58
57
  o.boolean "--preserve", "preserve existing rows", default: false
59
58
  o.boolean "--truncate", "truncate existing rows", default: false
60
- o.boolean "--schema-first", "schema first", default: false
61
- o.boolean "--schema-only", "schema only", default: false
62
- o.boolean "--all-schemas", "all schemas", default: false
63
- o.boolean "--no-rules", "do not apply data rules", default: false
64
- o.boolean "--no-sequences", "do not sync sequences", default: false
65
- o.boolean "--init", "init", default: false
66
- o.boolean "--in-batches", "in batches", default: false, help: false
67
- o.integer "--batch-size", "batch size", default: 10000, help: false
68
- o.float "--sleep", "sleep", default: 0, help: false
69
- o.boolean "--fail-fast", "stop on the first failed table", default: false
70
- o.boolean "--defer-constraints", "defer constraints", default: false, help: false
59
+
60
+ o.separator ""
61
+ o.separator "Foreign key options:"
71
62
  o.boolean "--defer-constraints-v2", "defer constraints", default: false
72
- o.boolean "--disable-user-triggers", "disable non-system triggers", default: false
73
63
  o.boolean "--disable-integrity", "disable foreign key triggers", default: false
64
+ o.integer "-j", "--jobs", "number of tables to sync at a time"
65
+
66
+ # replaced by v2
67
+ o.boolean "--defer-constraints", "defer constraints", default: false, help: false
74
68
  # private, for testing
75
69
  o.boolean "--disable-integrity-v2", "disable foreign key triggers", default: false, help: false
76
- o.boolean "-v", "--version", "print the version"
77
- o.boolean "-h", "--help", "prints help"
70
+
71
+ o.separator ""
72
+ o.separator "Schema options:"
73
+ o.boolean "--schema-first", "sync schema first", default: false
74
+ o.boolean "--schema-only", "sync schema only", default: false
75
+
76
+ o.separator ""
77
+ o.separator "Config options:"
78
+ # technically, defaults to searching path for .pgsync.yml, but this is simpler
79
+ o.string "--config", "config file (defaults to .pgsync.yml)"
80
+ o.string "-d", "--db", "database-specific config file"
81
+
82
+ o.separator ""
83
+ o.separator "Connection options:"
84
+ o.string "--from", "source database URL"
85
+ o.string "--to", "destination database URL"
86
+ o.boolean "--to-safe", "confirms destination is safe (when not localhost)", default: false
87
+
88
+ o.separator ""
89
+ o.separator "Other options:"
90
+ o.boolean "--debug", "show SQL statements", default: false
91
+ o.boolean "--disable-user-triggers", "disable non-system triggers", default: false
92
+ o.boolean "--fail-fast", "stop on the first failed table", default: false
93
+ o.boolean "--no-rules", "don't apply data rules", default: false
94
+ o.boolean "--no-sequences", "don't sync sequences", default: false
95
+
96
+ # not shown in help
97
+ # o.separator ""
98
+ # o.separator "Append-only table options:"
99
+ o.boolean "--in-batches", "sync in batches", default: false, help: false
100
+ o.integer "--batch-size", "batch size", default: 10000, help: false
101
+ o.float "--sleep", "time to sleep between batches", default: 0, help: false
102
+
103
+ o.separator ""
104
+ o.separator "Other commands:"
105
+ o.boolean "--init", "create config file", default: false
106
+ o.boolean "--list", "list tables", default: false
107
+ o.boolean "-h", "--help", "print help"
108
+ o.boolean "-v", "--version", "print version"
109
+
78
110
  o
79
111
  end
80
112
  end
@@ -1,3 +1,3 @@
1
1
  module PgSync
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 4.8.1
47
+ version: 4.8.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 4.8.1
54
+ version: 4.8.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tty-spinner
57
57
  requirement: !ruby/object:Gem::Requirement