Skip to content

andrewvc/mysql-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL XML

About

Provides an easy way to parse XML output from mysql -X. MySQLXML::parse takes an IO object for the XML and a block that gets called once for each record. The records are represented as hashes keyed by string representations of column names.

Example:

MySQLXML::parse(File.new('test.xml')) do |record|
  puts record['username']
end

This uses REXML’s stream parser, so it should be reasonably memory efficient.

Install

From Gemcutter

gem install mysql-xml

About

A simple library for iterating through XML data dumps in a stream based manner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages