Sha256: 5818ca54338b602c8e6052ea84a2278a38a46c2b00c4bb180b9321ef1aab587b
Contents?: true
Size: 622 Bytes
Versions: 10
Compression:
Stored size: 622 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'sequel_core' require 'sequel_model' rescue nil usage = <<END Usage: sequel <connection URI> Sequel: Lightweight ORM library for Ruby Examples: sequel sqlite:///blog.db sequel postgres://localhost/my_blog For more information see http://code.google.com/p/ruby-sequel END db = ARGV.shift if db.nil? || db.empty? puts usage exit end begin DB = Sequel.connect db rescue => e puts e.message exit end begin DB.test_connection rescue => e puts e.message puts e.backtrace.first exit end require 'irb' puts "Your database is stored in DB..." IRB.start
Version data entries
10 entries across 10 versions & 1 rubygems