tapsoob 0.4.26-java → 0.4.27-java
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.
- checksums.yaml +4 -4
- data/lib/tapsoob/cli/root.rb +3 -0
- data/lib/tapsoob/operation.rb +6 -2
- data/lib/tapsoob/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c84cbc1fe369db1a683ba05335edcb1fc8d2f5960df108830cf0955279c1d10e
|
4
|
+
data.tar.gz: c69c9fbdd7f5eea1ec8ed856384c6632857a618539cbe76244116961d1ad89eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5eef5462b169ca16e4bc8a26c7fcd8e29f29c17e34c6f3b3d606a3a6049d4ede824018774645ca62de3642cedc760dc32095fd9a0837f9077c097887badfd1d
|
7
|
+
data.tar.gz: 05a13f40619677e5a4eef21e357e1e056cc76bdaf72e22fa5bc1cd06577c6afca0b6a7f7343589967dbd185a0b06263bbc031ae77cb55b3382d37dd9f8f93d4f
|
data/lib/tapsoob/cli/root.rb
CHANGED
@@ -10,6 +10,7 @@ module Tapsoob
|
|
10
10
|
module CLI
|
11
11
|
class Root < Thor
|
12
12
|
desc "pull DUMP_PATH DATABASE_URL", "Pull a dump from a database to a folder"
|
13
|
+
option :"schema-only", desc: "Don't transfer the data just schema", default: false, type: :boolean
|
13
14
|
option :"skip-schema", desc: "Don't transfer the schema just data", default: false, type: :boolean, aliases: "-s"
|
14
15
|
option :"indexes-first", desc: "Transfer indexes first before data", default: false, type: :boolean, aliases: "-i"
|
15
16
|
option :resume, desc: "Resume a Tapsoob Session from a stored file", type: :string, aliases: "-r"
|
@@ -29,6 +30,7 @@ module Tapsoob
|
|
29
30
|
end
|
30
31
|
|
31
32
|
desc "push DUMP_PATH DATABASE_URL", "Push a previously tapsoob dump to a database"
|
33
|
+
option :"schema-only", desc: "Don't transfer the data just schema", default: false, type: :boolean
|
32
34
|
option :"skip-schema", desc: "Don't transfer the schema just data", default: false, type: :boolean, aliases: "-s"
|
33
35
|
option :"indexes-first", desc: "Transfer indexes first before data", default: false, type: :boolean, aliases: "-i"
|
34
36
|
option :resume, desc: "Resume a Tapsoob Session from a stored file", type: :string, aliases: "-r"
|
@@ -65,6 +67,7 @@ module Tapsoob
|
|
65
67
|
def parse_opts(options)
|
66
68
|
# Default options
|
67
69
|
opts = {
|
70
|
+
schema_only: options[:"schema-only"],
|
68
71
|
skip_schema: options[:"skip-schema"],
|
69
72
|
indexes_first: options[:"indexes_first"],
|
70
73
|
disable_compression: options[:"disable-compression"],
|
data/lib/tapsoob/operation.rb
CHANGED
@@ -21,6 +21,10 @@ module Tapsoob
|
|
21
21
|
"op"
|
22
22
|
end
|
23
23
|
|
24
|
+
def schema_only?
|
25
|
+
!!opts[:schema_only]
|
26
|
+
end
|
27
|
+
|
24
28
|
def skip_schema?
|
25
29
|
!!opts[:skip_schema]
|
26
30
|
end
|
@@ -167,7 +171,7 @@ module Tapsoob
|
|
167
171
|
end
|
168
172
|
setup_signal_trap
|
169
173
|
pull_partial_data if resuming?
|
170
|
-
pull_data
|
174
|
+
pull_data unless schema_only?
|
171
175
|
pull_indexes if !indexes_first? && !skip_schema?
|
172
176
|
pull_reset_sequences
|
173
177
|
end
|
@@ -329,7 +333,7 @@ module Tapsoob
|
|
329
333
|
end
|
330
334
|
setup_signal_trap
|
331
335
|
push_partial_data if resuming?
|
332
|
-
push_data
|
336
|
+
push_data unless schema_only?
|
333
337
|
push_indexes if !indexes_first? && !skip_schema?
|
334
338
|
push_reset_sequences
|
335
339
|
end
|
data/lib/tapsoob/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapsoob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.27
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Félix Bellanger
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-01-
|
12
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|