From f957eb5aff3ad2297966b5658a3d1d77ff3b2d1e Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 11 Feb 2010 12:44:50 +0000 Subject: [PATCH] DBD::SQLite: added primary_key(_info) pod --- lib/DBD/SQLite.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index 3b2c9fd..513713b 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -983,6 +983,9 @@ See above for details. =head1 METHODS +See also to the L documentation for the details of other common +methods. + =head2 table_info $sth = $dbh->table_info(undef, $schema, $table, $type, \%attr); @@ -1007,6 +1010,17 @@ B: The name of the table or view. B: The type of object returned. Will be one of 'TABLE', 'VIEW', 'LOCAL TEMPORARY' or 'SYSTEM TABLE'. +=head2 primary_key, primary_key_info + + @names = $dbh->primary_key(undef, $schema, $table); + $sth = $dbh->primary_key_info(undef, $schema, $table, \%attr); + +You can retrieve primary key names or more detailed information. +As noted above, SQLite does not have the concept of catalogs, so the +first argument of the mothods is usually C, and you'll usually +set C for the second one (unless you want to know the primary +keys of temporary tables). + =head1 DRIVER PRIVATE METHODS The following methods can be called via the func() method with a little