Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Metadata

There are several metadata-related method calls associated with the main database handle. These are summarized in Table B-5. (There will be an increasing amount of metadata in future versions of DBI. Check perldoc DBI for the latest details.)

Table B-5. Database handle metadata methods
Method Description
table_info Lists schemas, tables, and other object metadata.
tables A simpler interface to the tables_info method.
primary_key_info Provides primary key metadata.
primary_key A simpler interface to the primary_key_info method.
type_info_all Returns a reference to a read-only array used to drill down on all type information in the database.
type_info Returns information on a particular data type.
foreign_key_info Returns foreign key information.
column_info Returns column information.



  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint