tapsoob 0.7.7 → 0.7.8
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 +2 -0
- data/lib/tapsoob/operation/base.rb +3 -0
- 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: 8f457ea6567a88cb17db0cec3be46b52442d69b649db311092370af258bfead4
|
|
4
|
+
data.tar.gz: e2280ec6a52db877689eb292a27a31bb2dbdb5b7c1d2031611f351d6c637821d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c8e4bd03a2f55ba0594c48de850029bfcceffe82a421726fe2622bddf63e5f3253fafee4d3f747cad1aeb087877c882ef404159dda46c453c77dacd4d9ccf3f
|
|
7
|
+
data.tar.gz: 30f5b3000f161271665dd508a2d88b96c4bfe6917561f3d4e1706d1d80cc3ebab44d24b70a1e79b7062949e7460c67321e2a4311fb8ba52acccc8b65c639f500
|
data/lib/tapsoob/cli/root.rb
CHANGED
|
@@ -23,6 +23,7 @@ module Tapsoob
|
|
|
23
23
|
option :"indexes", type: :boolean, default: false
|
|
24
24
|
option :"same-db", type: :boolean, default: false
|
|
25
25
|
option :parallel, desc: "Number of parallel workers for table processing (default: 1)", default: 1, type: :numeric, aliases: "-j"
|
|
26
|
+
option :"no-split", desc: "Disable automatic intra-table parallelization", default: false, type: :boolean
|
|
26
27
|
option :progress, desc: "Show progress", default: true, type: :boolean
|
|
27
28
|
option :debug, desc: "Enable debug messages", default: false, type: :boolean
|
|
28
29
|
def pull(dump_path, database_url)
|
|
@@ -92,6 +93,7 @@ module Tapsoob
|
|
|
92
93
|
# Pull only options
|
|
93
94
|
opts[:indexes] = options[:"indexes"] if options.key?(:"indexes")
|
|
94
95
|
opts[:same_db] = options[:"same-db"] if options.key?(:"same-db")
|
|
96
|
+
opts[:no_split] = options[:"no-split"] if options.key?(:"no-split")
|
|
95
97
|
|
|
96
98
|
# Push only options
|
|
97
99
|
opts[:purge] = options[:purge] if options.key?(:purge)
|
|
@@ -154,6 +154,9 @@ module Tapsoob
|
|
|
154
154
|
# (no dump_path means we're outputting JSON directly, which can't be safely parallelized)
|
|
155
155
|
return 1 if dump_path.nil?
|
|
156
156
|
|
|
157
|
+
# Disable intra-table parallelization when --no-split is passed
|
|
158
|
+
return 1 if opts[:no_split]
|
|
159
|
+
|
|
157
160
|
# TEMPORARILY RE-ENABLED for debugging
|
|
158
161
|
# return 1 if self.is_a?(Tapsoob::Operation::Push)
|
|
159
162
|
|
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.7.
|
|
4
|
+
version: 0.7.8
|
|
5
5
|
platform: ruby
|
|
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: 2026-
|
|
12
|
+
date: 2026-04-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sequel
|