mysql2postgres 0.3.3 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +9 -4
- data/Rakefile +1 -1
- data/bin/mysql2postgres +6 -14
- data/lib/mysql2postgres/connection.rb +19 -19
- data/lib/mysql2postgres/converter.rb +1 -2
- data/lib/mysql2postgres/mysql_reader.rb +20 -16
- data/lib/mysql2postgres/postgres_db_writer.rb +4 -5
- data/lib/mysql2postgres/postgres_file_writer.rb +20 -6
- data/lib/mysql2postgres/postgres_writer.rb +66 -31
- data/lib/mysql2postgres/version.rb +1 -1
- data/lib/mysql2postgres.rb +58 -25
- data/mysql2postgres.gemspec +7 -11
- data/test/fixtures/config_all_options.yml +14 -11
- data/test/fixtures/config_min_options.yml +16 -0
- data/test/fixtures/config_to_file.yml +31 -0
- data/test/integration/convert_to_db_test.rb +15 -8
- data/test/integration/convert_to_file_test.rb +33 -18
- data/test/integration/converter_test.rb +10 -3
- data/test/integration/{mysql_reader_base_test.rb → mysql_reader_connection_test.rb} +9 -6
- data/test/integration/mysql_reader_test.rb +7 -4
- data/test/integration/postgres_db_writer_test.rb +24 -0
- data/test/test_helper.rb +22 -67
- data/test/units/mysql_test.rb +10 -0
- data/test/units/option_test.rb +5 -8
- data/test/units/postgres_file_writer_test.rb +4 -2
- metadata +14 -82
- data/lib/mysql2postgres/writer.rb +0 -9
- data/test/integration/postgres_db_writer_base_test.rb +0 -18
@@ -1,18 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require File.expand_path '../test_helper', __dir__
|
4
|
-
|
5
|
-
class PostgresDbWriterBaseTest < Test::Unit::TestCase
|
6
|
-
class << self
|
7
|
-
def startup
|
8
|
-
seed_test_database
|
9
|
-
@options = get_test_config_by_label :localmysql_to_db_convert_nothing
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_pg_connection
|
14
|
-
assert_nothing_raised do
|
15
|
-
mysql2postgres::PostgresDbWriter.new Tempfile.new('mysql2postgres_test_').path, @options
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|