1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

DBD::SQLite: added primary_key(_info) pod

This commit is contained in:
Kenichi Ishigaki 2010-02-11 12:44:50 +00:00
parent 5ae7532d81
commit f957eb5aff

View file

@ -983,6 +983,9 @@ See above for details.
=head1 METHODS
See also to the L<DBI> 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<TABLE_NAME>: The name of the table or view.
B<TABLE_TYPE>: 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<undef>, and you'll usually
set C<undef> 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