tapsoob 0.3.14-java → 0.3.16-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/README.md +17 -0
- data/lib/tapsoob/version.rb +1 -1
- data/tapsoob.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18966c1577d34ebe06aa3d2aa3a9fd9cff0ad2f5387c1e1029c5a7fa407771a4
|
4
|
+
data.tar.gz: 5d3a11bf9c10df2a44176c8f2475e1b9ba554330b3fe254551ee86ca050ad40c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e57e3746ceedaea48aeced9465945d637f043a18cf11c7776d3afae0b320d2be07f5388d88845689c18d31eb55802281a2576441540fdf66a27eff30f0ec7069
|
7
|
+
data.tar.gz: 2bba4014438cc84c04b89d940eacdf903237d8298e0ffe1fd5e41f1f85cb06abd342de875c259b2d1642b758230e6d902bfdb8d826fa9e6937e97362cec9e786
|
data/README.md
CHANGED
@@ -36,6 +36,23 @@ You can list all available options using the command:
|
|
36
36
|
tapsoob push -h
|
37
37
|
|
38
38
|
|
39
|
+
## NEW : Piping your schema/indexes/data
|
40
|
+
|
41
|
+
Due to some needs we added ways to pipe your schema/indexes/data directly from one database to another, here's an equivalent of the export/import process described above using this technique :
|
42
|
+
|
43
|
+
```
|
44
|
+
tapsoob schema dump <db_source_url> | tapsoob schema load <db_target_url> --drop=true
|
45
|
+
tapsoob schema indexes <db_source_url> | tapsoob schema load_indexes <db_target_url>
|
46
|
+
tapsoob data pull <db_source_url> -p false | tapsoob data push <db_target_url>
|
47
|
+
tapsoob schema reset_db_sequences <db_target_url>
|
48
|
+
```
|
49
|
+
|
50
|
+
A few notes here :
|
51
|
+
|
52
|
+
* the `--drop` option for the `schema load` command defaults to false, if you don't intend to drop your tables on your target databases you can ommit it (if a table already exists tapsoob will exit w/ an error) ;
|
53
|
+
* the `data pull` and `data push` commands are new and have a few options that you can display w/ `tapsoob data <pull|push> -h`, by defaults it prints the progress of your data extraction/import but if you want to pipe directly your export into another database you'll have to set the `--progress` (shorthand `-p`) option to `false` (or `--no-progress`) as above ;
|
54
|
+
* resetting database sequences is important as a `data push` command doesn't handle that directly.
|
55
|
+
|
39
56
|
## Integration with Rails
|
40
57
|
|
41
58
|
If you're using Rails, there's also two Rake tasks provided:
|
data/lib/tapsoob/version.rb
CHANGED
data/tapsoob.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
# Dependencies
|
23
23
|
s.add_dependency "ripl", "~> 0.7.1"
|
24
24
|
s.add_dependency "sequel", "~> 5.25.0"
|
25
|
-
s.add_dependency "thor", "~> 0.
|
25
|
+
s.add_dependency "thor", "~> 1.0.1"
|
26
26
|
|
27
27
|
if (RUBY_PLATFORM =~ /java/).nil?
|
28
28
|
s.add_development_dependency "mysql2", "~> 0.4.10"
|
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.3.
|
4
|
+
version: 0.3.16
|
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: 2020-
|
12
|
+
date: 2020-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 1.0.1
|
48
48
|
name: thor
|
49
49
|
prerelease: false
|
50
50
|
type: :runtime
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
55
|
+
version: 1.0.1
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
@@ -149,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
|
153
|
-
rubygems_version: 2.7.10
|
152
|
+
rubygems_version: 3.1.4
|
154
153
|
signing_key:
|
155
154
|
specification_version: 4
|
156
155
|
summary: Simple tool to import/export databases.
|