Sha256: e90dc8ae2a91c10bd2dd812546aa7cb552d06f126d328501258b4bda06bc0d71
Contents?: true
Size: 603 Bytes
Versions: 6
Compression:
Stored size: 603 Bytes
Contents
# $Id: test.rb,v 1.8 2015/03/25 10:53:59 chw Exp chw $ # # Execute in ruby-odbc top directory. # # ruby test.rb "mysql-DSN" "mysql-user" "mysql-password" # # Test creates and deletes table "test" in that DSN. require 'odbc' $dsn = ARGV.shift $uid = ARGV.shift $pwd = ARGV.shift begin Dir.glob("[0-9]*.rb").sort.each do |f| f =~ /\d+(.*)\.rb$/ print $1 + "."*(20-$1.length) $stdout.flush load f print "ok\n" end ensure begin $c.drop_all unless $c.class != ODBC::Database rescue end begin ODBC.connect($dsn, $uid, $pwd).do("drop table test") rescue end end
Version data entries
6 entries across 6 versions & 1 rubygems