ricardochimal-taps 0.2.0 → 0.2.1
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.
- data/README.rdoc +9 -3
- data/Rakefile +1 -0
- data/VERSION.yml +1 -1
- data/bin/taps +1 -0
- data/lib/taps/client_session.rb +2 -1
- data/lib/taps/config.rb +1 -1
- data/lib/taps/server.rb +1 -4
- metadata +14 -5
data/README.rdoc
CHANGED
@@ -4,17 +4,23 @@ A simple database agnostic import/export app to transfer data to/from a remote d
|
|
4
4
|
|
5
5
|
== Usage: Server
|
6
6
|
|
7
|
-
$ taps server postgres://localdbuser:localdbpass@localhost/dbname
|
7
|
+
$ taps server postgres://localdbuser:localdbpass@localhost/dbname httpuser httppassword
|
8
8
|
|
9
9
|
== Usage: Client
|
10
10
|
|
11
11
|
When you want to pull down a database from a taps server
|
12
12
|
|
13
|
-
$ taps pull postgres://dbuser:dbpassword@localhost/dbname http://
|
13
|
+
$ taps pull postgres://dbuser:dbpassword@localhost/dbname http://httpuser:httppassword@example.com:5000
|
14
14
|
|
15
15
|
or when you want to push a local database to a taps server
|
16
16
|
|
17
|
-
$ taps push postgres://dbuser:dbpassword@localhost/dbname http://
|
17
|
+
$ taps push postgres://dbuser:dbpassword@localhost/dbname http://httpuser:httppassword@example.com:5000
|
18
|
+
|
19
|
+
== Known Issues
|
20
|
+
|
21
|
+
* Blob Data does not transfer properly.
|
22
|
+
* Foreign Keys get lost in the schema transfer
|
23
|
+
* Large tables (>1 million rows with a large number of columns) get slower as the offset gets larger. This is due to it being inefficient having large offset values in queries.
|
18
24
|
|
19
25
|
== Meta
|
20
26
|
|
data/Rakefile
CHANGED
data/VERSION.yml
CHANGED
data/bin/taps
CHANGED
data/lib/taps/client_session.rb
CHANGED
@@ -192,7 +192,8 @@ class ClientSession
|
|
192
192
|
puts "Receiving schema from remote taps server #{remote_url} into local database #{database_url}"
|
193
193
|
|
194
194
|
schema_data = session_resource['schema'].get(:taps_version => Taps::VERSION)
|
195
|
-
|
195
|
+
output = Taps::Utils.load_schema(database_url, schema_data)
|
196
|
+
puts output if output
|
196
197
|
end
|
197
198
|
|
198
199
|
def cmd_receive_indexes
|
data/lib/taps/config.rb
CHANGED
data/lib/taps/server.rb
CHANGED
@@ -4,15 +4,12 @@ require File.dirname(__FILE__) + '/utils'
|
|
4
4
|
require File.dirname(__FILE__) + '/db_session'
|
5
5
|
|
6
6
|
module Taps
|
7
|
-
class Server < Sinatra::
|
7
|
+
class Server < Sinatra::Default
|
8
8
|
use Rack::Auth::Basic do |login, password|
|
9
9
|
login == Taps::Config.login && password == Taps::Config.password
|
10
10
|
end
|
11
11
|
|
12
12
|
error do
|
13
|
-
e = request.env['sinatra.error']
|
14
|
-
puts e.to_s
|
15
|
-
puts e.backtrace.join("\n")
|
16
13
|
"Application error"
|
17
14
|
end
|
18
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ricardochimal-taps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Chimal, Jr.
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-02-
|
13
|
+
date: 2009-02-10 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -58,6 +58,15 @@ dependencies:
|
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: 2.10.0
|
60
60
|
version:
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: sqlite3-ruby
|
63
|
+
version_requirement:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.2.0
|
69
|
+
version:
|
61
70
|
description: A simple database agnostic import/export app to transfer data to/from a remote database.
|
62
71
|
email: ricardo@heroku.com
|
63
72
|
executables:
|
@@ -73,14 +82,14 @@ files:
|
|
73
82
|
- spec/schema_spec.rb
|
74
83
|
- spec/server_spec.rb
|
75
84
|
- spec/utils_spec.rb
|
76
|
-
- lib/taps/config.rb
|
77
85
|
- lib/taps/db_session.rb
|
78
86
|
- lib/taps/progress_bar.rb
|
79
|
-
- lib/taps/server.rb
|
80
87
|
- lib/taps/utils.rb
|
81
88
|
- lib/taps/schema.rb
|
82
|
-
- lib/taps/client_session.rb
|
83
89
|
- lib/taps/cli.rb
|
90
|
+
- lib/taps/client_session.rb
|
91
|
+
- lib/taps/server.rb
|
92
|
+
- lib/taps/config.rb
|
84
93
|
- README.rdoc
|
85
94
|
- LICENSE
|
86
95
|
- VERSION.yml
|