mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD::SQLite: added primary_key(_info) pod
This commit is contained in:
parent
5ae7532d81
commit
f957eb5aff
1 changed files with 14 additions and 0 deletions
|
@ -983,6 +983,9 @@ See above for details.
|
||||||
|
|
||||||
=head1 METHODS
|
=head1 METHODS
|
||||||
|
|
||||||
|
See also to the L<DBI> documentation for the details of other common
|
||||||
|
methods.
|
||||||
|
|
||||||
=head2 table_info
|
=head2 table_info
|
||||||
|
|
||||||
$sth = $dbh->table_info(undef, $schema, $table, $type, \%attr);
|
$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',
|
B<TABLE_TYPE>: The type of object returned. Will be one of 'TABLE', 'VIEW',
|
||||||
'LOCAL TEMPORARY' or 'SYSTEM TABLE'.
|
'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
|
=head1 DRIVER PRIVATE METHODS
|
||||||
|
|
||||||
The following methods can be called via the func() method with a little
|
The following methods can be called via the func() method with a little
|
||||||
|
|
Loading…
Add table
Reference in a new issue