mysql-xml 0.1 → 0.1.1
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.
- data/README.rdoc +19 -12
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -1,12 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
= MySQL XML
|
2
|
+
|
3
|
+
== About
|
4
|
+
|
5
|
+
Provides an easy way to parse XML output from mysql -X.
|
6
|
+
MySQLXML::parse takes an IO object for the XML and a block that gets called
|
7
|
+
once for each record. The records are represented as hashes keyed by string
|
8
|
+
representations of column names.
|
9
|
+
|
10
|
+
Example:
|
11
|
+
MySQLXML::parse(File.new('test.xml')) do |record|
|
12
|
+
puts record['username']
|
13
|
+
end
|
14
|
+
|
15
|
+
This uses REXML's stream parser, so it should be reasonably memory efficient.
|
16
|
+
|
17
|
+
== Install
|
18
|
+
From Gemcutter
|
19
|
+
gem install mysql-xml
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Cholakian
|
@@ -9,11 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-23 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: Provides a simple, fast way of parsing XML dumps of MySQL data.
|
16
|
+
description: Provides a simple, fast way of parsing XML dumps of MySQL data, uses the REXML stream parser making it suitable for use on datasets of arbitrary length.
|
17
17
|
email: andrew@andrewvc.com
|
18
18
|
executables: []
|
19
19
|
|
@@ -27,7 +27,7 @@ files:
|
|
27
27
|
- LICENSE
|
28
28
|
- lib/mysql-xml.rb
|
29
29
|
has_rdoc: true
|
30
|
-
homepage: http://
|
30
|
+
homepage: http://github.com/andrewvc/mysql-xml
|
31
31
|
licenses: []
|
32
32
|
|
33
33
|
post_install_message:
|