Re: using table_info()

2003-07-02 Thread Rob Dixon
Shaunn Johnson wrote: > Howdy: > > I would like to use the table_info() method for getting > database / table metadata from a database. In this case, > PostgreSQL 7.2.x. > > I am reading the "Programming the Perl DBI" book and > I am using the following for my script to get a list of > tables and

Re: using table_info()

2003-07-01 Thread Thomas A. Lowery
The sql shell that comes with DBI (DBI::Shell or dbish) includes a describe command. The results vary based on the version of DBD::Pg installed, but it attempts to translate the type value to a name. (See DBI/Shell.pm for complete code) Here's how it determines the types: ... my $sth = $dbh-