Sha256: 7abbcc785034ddcbf30223b6d28cae7c282c40c30fe5e36c861d66f4d0f72b39
Contents?: true
Size: 719 Bytes
Versions: 17
Compression:
Stored size: 719 Bytes
Contents
####################################################################### # test_xml.rb # # Simple test script that uses the DBRC::XML subclass. ####################################################################### if File.basename(Dir.pwd) == "xml" Dir.chdir "../.." $LOAD_PATH.unshift Dir.pwd + "/lib" Dir.chdir "examples/xml" end require "dbi/dbrc" require "pp" include DBI puts "VERSION: " + DBRC::XML::VERSION # Use the .dbrc file in this directory db1 = DBRC::XML.new("foo",nil,Dir.pwd) # Get first entry found for 'foo' db2 = DBRC::XML.new("foo","user1",Dir.pwd) # Specify user puts "First entry found for 'foo': " pp db1 puts "=" * 20 puts "Entry for 'foo' with user 'bar': " pp db2 puts "=" * 20
Version data entries
17 entries across 17 versions & 1 rubygems