nbadw-util 0.1.2 → 0.1.3

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.
@@ -27,7 +27,7 @@ module NBADW
27
27
  rescue Exception => e
28
28
  puts "...fail!!!"
29
29
  puts "Reason: #{e.message}"
30
- puts e.backtrace.join("\n")
30
+ raise e
31
31
  end
32
32
  end
33
33
 
@@ -4,15 +4,18 @@ require 'rubygems'
4
4
  require 'nbadw/util/copy_database_task'
5
5
 
6
6
  src = 'jdbc:access:////home/colin/master.mdb'
7
+ dst = 'jdbc:mysql://localhost/test?user=developer&password=developer'
7
8
 
8
- db = Sequel.connect(src)
9
-
10
- db.tables.each do |t|
11
- puts t
12
- end
13
-
14
- puts db.dump_table_schema(:cdAgency)
15
-
16
- db.schema(:cdAgency).each do |col_info|
17
- puts "#{col_info[0]}: #{col_info[1].inspect}"
18
- end
9
+ NBADW::Util::CopyDatabaseTask.start(src, dst, :verify_data => true, :except => ['EF Data before mm/100'])
10
+ #
11
+ #db = Sequel.connect(src)
12
+ #
13
+ #db.tables.each do |t|
14
+ # puts t
15
+ #end
16
+ #
17
+ #puts db.dump_table_schema(:cdAgency)
18
+ #
19
+ #db.schema(:cdAgency).each do |col_info|
20
+ # puts "#{col_info[0]}: #{col_info[1].inspect}"
21
+ #end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nbadw-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Casey