package SQL::Translator::Producer::ClassDBI;
# -------------------------------------------------------------------
-# $Id: ClassDBI.pm,v 1.2 2003-04-19 01:32:27 kycl4rk Exp $
+# $Id: ClassDBI.pm,v 1.3 2003-04-19 22:58:12 allenday Exp $
# -------------------------------------------------------------------
# Copyright (C) 2003 Ying Zhang <zyolive@yahoo.com>,
# Allen Day <allenday@ucla.edu>,
use strict;
use vars qw[ $VERSION $DEBUG ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/;
$DEBUG = 1 unless defined $DEBUG;
use Data::Dumper;
$create .= "1;\n\n\n";
}
-
- open( FILE, '>DBI.pm') or die( "Can't open file : $!");
- print ( FILE $create);
- close ( FILE ) or die( "Can't close file : $!");
-
+
+ return $create;
}
} elsif ( $from eq 'PostgreSQL') {
$from = 'Pg';
} elsif ( $from eq 'Oracle') {
-
+ $from = 'Oracle';
} else {
- print "Eoorr\n";
+ die "__PACKAGE__ can't handle vendor $from";
}
return $from;