Ken Youens-Clark [Mon, 5 May 2003 04:33:49 +0000]
More changes to keep up with code.
Ken Youens-Clark [Mon, 5 May 2003 04:33:22 +0000]
Too many changes.
Ken Youens-Clark [Mon, 5 May 2003 04:32:39 +0000]
Too many changes to mention.
Ken Youens-Clark [Sat, 3 May 2003 15:42:59 +0000]
Fixed error 'Use of uninitialized value in pattern match (m//) at blib/lib/SQL/Translator/Schema/Field.pm line 144.'
Ken Youens-Clark [Sat, 3 May 2003 15:40:51 +0000]
Changed to use Test::More, cleaned up syntax. Still pretty useless.
Ken Youens-Clark [Sat, 3 May 2003 15:40:18 +0000]
"size" of a field needs to be an arrayref as it could be two numbers (e.g.,
for a float "10,2").
Ken Youens-Clark [Sat, 3 May 2003 15:21:12 +0000]
Fixed error 'Use of uninitialized value in repeat (x) at blib/lib/SQL/Translator/Producer/XML.pm line 110.'
Ken Youens-Clark [Sat, 3 May 2003 15:17:23 +0000]
Fixed error 'Use of uninitialized value in string eq at blib/lib/SQL/Translator/Producer/MySQL.pm line 164.'
Ken Youens-Clark [Sat, 3 May 2003 15:16:19 +0000]
Fixed error '"my" variable $wb_count masks earlier declaration in same scope at blib/lib/SQL/Translator/Parser/Excel.pm line 68.'
Ken Youens-Clark [Sat, 3 May 2003 15:11:44 +0000]
For some reason, "t.pl" was still in there.
Ken Youens-Clark [Sat, 3 May 2003 15:02:15 +0000]
Fixed an error in default value regex that disallowed a value like "00:18:00".
Ken Youens-Clark [Sat, 3 May 2003 04:15:56 +0000]
Added the requirement of Parse::RecDescent 1.94 or later, added
"auto-graph.pl" to the EXE_FILES.
Ken Youens-Clark [Sat, 3 May 2003 04:12:00 +0000]
Adding a new PG parser test.
Ken Youens-Clark [Sat, 3 May 2003 04:11:37 +0000]
Trying to add tests as I write methods, so lots of new stuff to mirror
development of the Schema::* classes.
Ken Youens-Clark [Sat, 3 May 2003 04:09:50 +0000]
Using some of the rules from the PG grammar to make mine better, cleaned
up the handling of datatypes (esp WRT auto-inc), only placing PK defs as
table constraints (not an index), getting ready to parse views.
Ken Youens-Clark [Sat, 3 May 2003 04:07:38 +0000]
Not much to say ... just trying to get this working.
Ken Youens-Clark [Sat, 3 May 2003 04:07:09 +0000]
More changes to getting the schema to a working state.
Ken Youens-Clark [Thu, 1 May 2003 04:25:00 +0000]
Adding new objects for handing schema data. Not being used while I work
out the tests and the general idea.
Ken Youens-Clark [Thu, 1 May 2003 04:23:11 +0000]
Adding new schema test, commiting fixes to MySQL parser test.
Ken Youens-Clark [Wed, 30 Apr 2003 21:58:40 +0000]
Fixed error that was preventing MySQL parser from working with
Parse::RecDescent 1.94 (needed a "1;" at the end of the create rule);
also made changes to %item hash elements with repeat modifiers to
match what they're now called in Parse::RecDescent 1.94; these changes
now make the parser incompatible with earlier versions of P::RD!
Allen Day [Fri, 25 Apr 2003 23:08:01 +0000]
low hanging fruit, please read the diff below
Darren Chamberlain [Fri, 25 Apr 2003 11:48:12 +0000]
Test file for header_comment function from SQL::Translator::Utils.
Darren Chamberlain [Fri, 25 Apr 2003 11:47:25 +0000]
Added refactored comment producing using header_comment.
Added 'omit_empty_tags' option to XML producer. Also added some
documentation.
Made SQLite producer produce actual auto incremented fields (using the
INTEGER PRIMARY KEY hack) if the field is an auto-incremented one. This
modifies slightly how indexes are produced.
Also modified how mk_name is called in the SQLite producer; SQLite
doesn't accept index names that begin with numbers.
Darren Chamberlain [Fri, 25 Apr 2003 11:44:20 +0000]
Added header_comment function; see docs for details.
Allen Day [Thu, 24 Apr 2003 22:15:28 +0000]
adding a pg src file example
Allen Day [Thu, 24 Apr 2003 22:03:52 +0000]
adding graphviz dep
Ken Youens-Clark [Thu, 24 Apr 2003 21:40:12 +0000]
Added new files.
Ken Youens-Clark [Thu, 24 Apr 2003 20:02:31 +0000]
Added defaults to arguments.
Ken Youens-Clark [Thu, 24 Apr 2003 19:58:39 +0000]
Adding new CGI script front-end for GraphViz and Diagram producers.
Ken Youens-Clark [Thu, 24 Apr 2003 19:40:52 +0000]
Fixed bug (illegal div by 0) if "no_columns" wasn't numeric, also fixed
return of production if not writing to a file.
Ken Youens-Clark [Thu, 24 Apr 2003 16:36:49 +0000]
Adding new ER diagramming producer.
Ken Youens-Clark [Thu, 24 Apr 2003 16:33:23 +0000]
Moved most of the code into a new "Diagram" producer.
Ken Youens-Clark [Thu, 24 Apr 2003 16:15:58 +0000]
Cosmetic changes to keep the coding style consistent.
Ken Youens-Clark [Thu, 24 Apr 2003 16:15:13 +0000]
Adding new GraphViz producer.
Ken Youens-Clark [Thu, 24 Apr 2003 16:14:54 +0000]
Minor cosmetic changes.
Ken Youens-Clark [Thu, 24 Apr 2003 16:14:07 +0000]
Moved all the real code into a module so this script now just uses the new
GraphViz producer.
Allen Day [Sat, 19 Apr 2003 23:44:06 +0000]
cosmetic changes to autogenerated code.
Allen Day [Sat, 19 Apr 2003 23:32:34 +0000]
adding capability to give 'filename' constructor arg an arrayref.
Allen Day [Sat, 19 Apr 2003 22:58:12 +0000]
asdf
Ken Youens-Clark [Sat, 19 Apr 2003 01:32:27 +0000]
Fixed error for: "Use of uninitialized value in string eq at
/usr/local/apache/lib/perl/SQL/Translator/Producer/ClassDBI.pm line 98."
Also fixed some indentation problems in POD.
Allen Day [Fri, 18 Apr 2003 23:45:52 +0000]
adding ClassDBI producer.
Allen Day [Fri, 18 Apr 2003 20:43:05 +0000]
adding recognition of key type "key" for table indices.
Darren Chamberlain [Fri, 18 Apr 2003 14:25:58 +0000]
Forgot to add this yesterday.
Allen Day [Thu, 17 Apr 2003 23:16:29 +0000]
adding callbacks to Translator.pm to allow mangling of PK/FK/table names/package names (CDBI specific)
for producer classes.
Allen Day [Thu, 17 Apr 2003 19:42:33 +0000]
workaround to get auto_increment working from PG "serial" datatype. i didn't do this right, someone fix it :|
also added a fix to MySQL producer to not put () enclosed attributes if values don't exist. ie, don't put int() if there is
not a length defined for int.
Darren Chamberlain [Thu, 17 Apr 2003 13:42:48 +0000]
Attempt to be more robust.lib/SQL/Translator/Validator.pm
Darren Chamberlain [Thu, 17 Apr 2003 13:41:36 +0000]
Added normalize_name function, which normalizes names. Primarily needed by the Excel parser.
Darren Chamberlain [Thu, 17 Apr 2003 13:40:47 +0000]
Let's check before we assume this is a ref, eh?
Ken Youens-Clark [Mon, 14 Apr 2003 19:20:26 +0000]
Fixes to help with Oracle data types, also fixes with table constraints.
Ken Youens-Clark [Thu, 10 Apr 2003 22:53:11 +0000]
Added Oracle parser to MANIFEST.
Ken Youens-Clark [Thu, 10 Apr 2003 03:09:47 +0000]
Small fix.
Ken Youens-Clark [Thu, 10 Apr 2003 03:09:28 +0000]
Hey, new Oracle parser!
Darren Chamberlain [Tue, 8 Apr 2003 12:59:26 +0000]
Updated README to reflect changes to SQL/Translator.pm POD.
Darren Chamberlain [Tue, 8 Apr 2003 12:57:28 +0000]
Moving tests to Test::More
Darren Chamberlain [Tue, 8 Apr 2003 12:56:17 +0000]
Added Spreadsheet::ParseExcel
Darren Chamberlain [Tue, 8 Apr 2003 12:55:51 +0000]
Added missing stuff. Remember folks, anything not in MANIFEST will not be part of a distribution!
Darren Chamberlain [Tue, 8 Apr 2003 12:55:09 +0000]
Added stub test.
Darren Chamberlain [Mon, 7 Apr 2003 16:31:55 +0000]
And again, with the globals. Yeesh.
Darren Chamberlain [Mon, 7 Apr 2003 16:27:30 +0000]
Why make these globals?
Darren Chamberlain [Mon, 7 Apr 2003 16:18:15 +0000]
Hey, this could never have worked as advertised. *blush*.
Mikey Melillo [Mon, 7 Apr 2003 15:41:08 +0000]
added a text spreadsheet, hopefully in the right directory and such
Ken Youens-Clark [Sun, 6 Apr 2003 19:08:49 +0000]
Some syntax fixes, package name was wrong, added Mikey's name to AUTHORS.
This parser is still broken. The data structure I see coming back from
Spreadsheet::ParseExcel is not the same that is being examined by the code.
Mikey Melillo [Sun, 6 Apr 2003 14:29:52 +0000]
Init Check in. This follows closely along the lines of xSV.pm but its cooler
because I used map. Hsan't been tested yet becuase I won't have access to
suitable testing area til monday. Oh BTW, the map doesn't work syntactially.
Someone want to tell me whats wrong with that line?
Ken Youens-Clark [Thu, 3 Apr 2003 19:30:48 +0000]
Adding "auto-graph.pl" to automatically create graphs (via GraphViz) from
schema definitions.
Ken Youens-Clark [Thu, 3 Apr 2003 19:29:08 +0000]
Shortened "natural-join-fk-only" option to "natural-join-fk,"
accepting args to "image-type" now, added wider left margin (+10
pixels), added pre-processing of fields to find if the ones that acts
as FKs in other tables in order to support the "show-fk-only" option,
added debug option and warn statements to aid coding, added ability to
make connecting lines directed when established with proper FOREIGN
KEY/REFERENCES statements, added some colors.
Ken Youens-Clark [Wed, 2 Apr 2003 01:46:36 +0000]
Added grammar for "REFERENCES" (foreign keys).
Ken Youens-Clark [Wed, 2 Apr 2003 01:46:16 +0000]
Got foreign key references basically working now.
Ken Youens-Clark [Wed, 2 Apr 2003 01:45:45 +0000]
Added options for natual joins only, made code work with proper FK
references.
Ken Youens-Clark [Tue, 1 Apr 2003 18:08:02 +0000]
Added color option.
Ken Youens-Clark [Tue, 1 Apr 2003 17:06:22 +0000]
Added mark for unique constraint and legend to explain extra markings.
Ken Youens-Clark [Tue, 1 Apr 2003 16:43:34 +0000]
Added font options, made default font size 'small' instead of 'tiny.'
Mikey Melillo [Thu, 27 Mar 2003 19:07:00 +0000]
:)
Mikey Melillo [Thu, 27 Mar 2003 18:03:50 +0000]
added need for Excel Spreadsheet parser module
which I will write in the near future per Darren's request
Darren Chamberlain [Wed, 12 Mar 2003 14:19:52 +0000]
- load now sets $ERROR on failure.
- list_parsers and list_producers are a little more robust, and look
in every directory in @INC.
Darren Chamberlain [Wed, 12 Mar 2003 14:17:35 +0000]
Added SQLite producer and Utils.
Darren Chamberlain [Wed, 12 Mar 2003 14:17:11 +0000]
Added Utils package with debug method, shared between MySQL and SQLite producers.
Ken Youens-Clark [Fri, 7 Mar 2003 16:08:22 +0000]
Added code to kill field qualifiers in index field declarations.
Ken Youens-Clark [Tue, 4 Mar 2003 21:24:13 +0000]
Added SQLite producer, basic knock-off of MySQL producer, made some mods
to MySQL producer to add "DROP TABLE" statements, fixed POD a bit.
Ken Youens-Clark [Tue, 4 Mar 2003 21:20:17 +0000]
Some minor mods to POD.
Allen Day [Mon, 3 Mar 2003 20:52:57 +0000]
turning off debugging in t/08
Darren Chamberlain [Wed, 26 Feb 2003 13:12:40 +0000]
A README, which is required by CPAN.
Darren Chamberlain [Wed, 26 Feb 2003 13:11:42 +0000]
o Added bin/auto-dia.pl to scripts list
o Added a test for auto-dia (which might be questionable).
o Added GD to module prerequisite list
o Changed VERSION number, in anticipation of an intial release.
Darren Chamberlain [Wed, 26 Feb 2003 13:08:59 +0000]
Some doc changes; added Allen to AUTHORS section
Ken Youens-Clark [Wed, 26 Feb 2003 05:17:49 +0000]
Handle "on [delete|update] action" differently
Ken Youens-Clark [Wed, 26 Feb 2003 05:17:21 +0000]
Added more rule (alter table) to be able handle Chado schema.
Ken Youens-Clark [Tue, 25 Feb 2003 21:58:46 +0000]
Deleted "index" rules, allowed fore and aft comments in fields and
table constraints (unique, PK, etc.).
Darren Chamberlain [Tue, 25 Feb 2003 21:42:56 +0000]
Added t/08postgres-to-mysql.t
Ken Youens-Clark [Tue, 25 Feb 2003 21:25:14 +0000]
Added production to field rule to handle embedded comments.
Ken Youens-Clark [Tue, 25 Feb 2003 14:55:36 +0000]
Added some documentation to PG and MySQL; the "eofile" rule to MySQL.
Ken Youens-Clark [Tue, 25 Feb 2003 05:02:06 +0000]
Mods to handles FK references.
Ken Youens-Clark [Tue, 25 Feb 2003 05:01:35 +0000]
A working PG parser!
Allen Day [Tue, 25 Feb 2003 03:24:56 +0000]
i forget what i did, but i found more bugs. we need to be able to support 'varchar'
as implying 'varchar(255)' for both field and index declarations. also 'double precision'
as a synonym for 'double'. also, mysql doesn't support boolean datatype, but postgres does,
so we need to find a way to deal with this.
that's all for now.
-ad
Allen Day [Tue, 25 Feb 2003 02:03:55 +0000]
BUG. the parser cannot handle 'precision' as a qualifier for 'double'. this also applies to the mysql parser.
Allen Day [Tue, 25 Feb 2003 01:01:30 +0000]
added a serial->int auto_increment fix, a varchar->varchar(255) workaround.
Allen Day [Fri, 21 Feb 2003 19:35:17 +0000]
moving files around per ky's request
Allen Day [Fri, 21 Feb 2003 17:56:49 +0000]
here is the pgsql test script. NOTE: it will not work right now b/c i've
just changed ::PostGreSQL to ::PostgreSQL, but haven't renamed the module
itself yet. will do so later this morning, unless someone beats me to it
:-)
Darren Chamberlain [Fri, 21 Feb 2003 15:19:04 +0000]
Added new files to MANIFEST.
Started updating tests to use Test::More, rather than the homegrown
print stuff I'd started with (bad darren!).
The load test uses SQL::Translator::load, to both exercise load() and
to perform the actual test (I've intentionally used load instead of
Test::More::use_ok).
Added more dependencies to Makefile.PL.
Sorted the dependencies in PREREQ_PM, and the file list in MANIFEST,
because I'm obsessive about those sorts of silly things.
Allen Day [Fri, 21 Feb 2003 08:42:29 +0000]
an adaptor for postgres. this works, but i think my primary key and
foreign key parses are hackish. they require the pk/fk clause
_right_after_ the field declaration, which i don't think is how postgres
requires it.
also i've found a bug in the mysql parser that is in the postgres parser
as well that doesn't allow comments in the middle of table create
statements. this will cause a failed parse:
create table x (
x int,
-- a comment
);
Allen Day [Fri, 21 Feb 2003 03:23:33 +0000]
added Class::Base preq
Ken Youens-Clark [Sat, 15 Feb 2003 23:38:35 +0000]
Lots o' bug fixes. Added "join-pk-only" option.