X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FParser%2FDBI%2FSQLite.pm;h=a95630e6c4cb98741a4f4dba2aa2195678c7615d;hb=4ab3763d2ad756c236b757306989cafa08e7f35e;hp=2a9c816b90a6117fe3f5315f291f936d2e97e544;hpb=bdfd8a3fb2c64290256eb19b86cedc5d567179cc;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Parser/DBI/SQLite.pm b/lib/SQL/Translator/Parser/DBI/SQLite.pm index 2a9c816..a95630e 100644 --- a/lib/SQL/Translator/Parser/DBI/SQLite.pm +++ b/lib/SQL/Translator/Parser/DBI/SQLite.pm @@ -1,9 +1,7 @@ package SQL::Translator::Parser::DBI::SQLite; # ------------------------------------------------------------------- -# $Id: SQLite.pm,v 1.2 2003-10-03 18:13:32 kycl4rk Exp $ -# ------------------------------------------------------------------- -# Copyright (C) 2003 Ken Y. Clark . +# Copyright (C) 2002-2009 SQLFairy Authors # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -30,7 +28,12 @@ See SQL::Translator::Parser::DBI. =head1 DESCRIPTION -Queries the "sqlite_master" table for schema definition. +Queries the "sqlite_master" table for schema definition. The schema +is held in this table simply as CREATE statements for the database +objects, so it really just builds up a string of all these and passes +the result to the regular SQLite parser. Therefore there is no gain +(at least in performance) to using this module over simply dumping the +schema to a text file and parsing that. =cut @@ -40,7 +43,7 @@ use SQL::Translator::Parser::SQLite; use Data::Dumper; use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/; +$VERSION = '1.59'; $DEBUG = 0 unless defined $DEBUG; # ------------------------------------------------------------------- @@ -71,11 +74,10 @@ sub parse { =head1 AUTHOR -Ken Y. Clark Ekclark@cpan.orgE, -Chris Mungall Ecjm@fruitfly.orgE. +Ken Y. Clark Ekclark@cpan.orgE. =head1 SEE ALSO -perl(1), Parse::RecDescent, SQL::Translator::Schema. +SQL::Translator::Parser::SQLite. =cut