tapsoob 0.3.14-java → 0.3.16-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b603f0745ce072e4794e745abe8f372df0f6632aaef4e8a3a0918773ee85f0dc
4
- data.tar.gz: dc2f5837094c55a142957f0a5a32443a80198cb3dd709186d94afd4f09849d28
3
+ metadata.gz: 18966c1577d34ebe06aa3d2aa3a9fd9cff0ad2f5387c1e1029c5a7fa407771a4
4
+ data.tar.gz: 5d3a11bf9c10df2a44176c8f2475e1b9ba554330b3fe254551ee86ca050ad40c
5
5
  SHA512:
6
- metadata.gz: f7eb3cf9383f59b0609a03e153857e628b6fd03f9bc0db7bdf74c5363c26c6e8729040ea7292495b97f0e67ac132b867d51b25dbfc8a4320af832a7da947130f
7
- data.tar.gz: a28a0568eb91932fe6d1a0c37a92d3a33bbbff8b061b260f4f71a3602bceeeb287253d505f843c83b17047c82bff5b96cefe366985a9ffab787023d046238f43
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:
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.3.14".freeze
3
+ VERSION = "0.3.16".freeze
4
4
  end
@@ -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.20.3"
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.14
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-04-24 00:00:00.000000000 Z
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.20.3
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.20.3
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
- rubyforge_project:
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.