Removed Sybase parser from MANIFEST, update TODO.
[dbsrgits/SQL-Translator.git] / README
CommitLineData
c047df29 1 SQL::Translator README
2
aa301700 3SQL::Translator is a group of Perl modules that converts
5793372d 4vendor-specific SQL table definitions into other formats, such as
5other vendor-specific SQL, ER diagrams, documentation (POD and HTML),
6XML, and Class::DBI classes. The main focus of SQL::Translator is
7SQL, but parsers exist for other structured data formats, including
8Excel spreadsheets and arbitrarily delimited text files. Through the
9separation of the code into parsers and producers with an object model
10in between, it's possible to combine any parser with any producer, to
11plug in custom parsers or producers, or to manipulate the parsed data
12via the built-in object model. Presently only the definition parts of
13SQL are handled (CREATE, ALTER), not the manipulation of data (INSERT,
14UPDATE, DELETE).
c047df29 15
16As of version 0.02, parsers exist for the following:
17
18 Excel
19 MySQL
20 Oracle
21 PostgreSQL
22 Sybase
23 xSV (arbitrarily delimited text files)
24
25And the following producers exist:
26
27 ClassDBI: Class::DBI classes
28 Diagram: quasi-ER diagrams using libgd
29 GraphViz: ER diagrams using GraphViz
30 HTML: HTML documentation of schema
31 MySQL: MySQL-specific schema
32 Oracle: Oracle-specific schema
33 POD: Plain Old Documenation of schema
34 PostgreSQL: PostgreSQL-specific schema
35 SQLite: SQLite-specific schema
36 Sybase: Sybase-specific schema
37 XML: structure of the schema described in XML
38
c047df29 39Included in this distribution are a few scripts designed to be user
40interfaces for the actual SQL::Translator modules. In the "bin"
41directory, you will find:
42
43* sqlt-diagram.pl
44* sqlt-graph.pl
45* sql_translator.cgi
46* sql_translator.pl
47
48All scripts ending in ".pl" are meant to be run from the command line
49with various switches to control the input and output of the scripts,
50while the ".cgi" script is a web-form frontend. The script you'll
51probably find most useful is the "sql_translator.pl" script which is
52meant to be the main interface for translating from text-to-text. The
53graphic producers, however, have many extra switches, so there are
e784dbe4 54scripts specific for each of the the GraphViz and ER-diagram producers.
c047df29 55All scripts start with "sql" so it will be easier to identify them on
56your system. All the "*.pl" scripts will be installed in the normal
57installation process, but you'll have to put the CGI script into your
58web CGI directory to use it.
59
60If you're more interested in using the SQL::Translator modules
61directly, then you might be more interested to examine some of the
62test scripts in the "t" directory. While the test suite isn't
63currently as thorough as it should be, you will definitely get the
64idea of how to parse a file and manipulate the SQL::Translator::Schema
65objects.
46d3d648 66
6e220350 67INSTALLATION
68
69The regular method:
70
71 $ perl Makefile.PL
72 $ make
73 $ make test
74 $ su -
75 # make install
76
46d3d648 77AUTHORS
c047df29 78
79Ken Y. Clark, <kclark@cpan.org>,
80darren chamberlain <darren@cpan.org>,
81Chris Mungall <cjm@fruitfly.org>,
82Allen Day <allenday@users.sourceforge.net>,
83Sam Angiuoli <angiuoli@users.sourceforge.net>,
84Ying Zhang <zyolive@yahoo.com>,
85Mike Mellilo <mmelillo@users.sourceforge.net>.
46d3d648 86
87COPYRIGHT
46d3d648 88
c047df29 89This program is free software; you can redistribute it and/or modify it
90under the terms of the GNU General Public License as published by the
91Free Software Foundation; version 2.
46d3d648 92
c047df29 93This program is distributed in the hope that it will be useful, but
94WITHOUT ANY WARRANTY; without even the implied warranty of
95MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
96Public License for more details.
46d3d648 97
c047df29 98You should have received a copy of the GNU General Public License along
99with this program; if not, write to the Free Software Foundation, Inc.,
10059 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2e1b1775 101
c047df29 102BUGS
46d3d648 103
c047df29 104Please use http://rt.cpan.org/ for reporting bugs.
e784dbe4 105
106SEE ALSO
107
108Check out the SQLFairy homepage at Sourceforge for more information,
109mailing lists, etc.:
110
111 http://sqlfairy.sourceforge.net/