From 5df6d6b0532127f5c9e2d18f322fe0e1fc37683d Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Thu, 1 Aug 2013 01:07:48 +0900 Subject: [PATCH] applied dbd_sqlite_statistics_perldoc.patch by DDICK (RT#87435) --- lib/DBD/SQLite.pm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index 7429534..9a5637b 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -1574,6 +1574,47 @@ Whether the column is primary or unique. B: foreign key support in SQLite must be explicitly turned on through a C command; see L earlier in this manual. +=head2 statistics_info + + $sth = $dbh->statistics_info(undef, $schema, $table, + $unique_only, $quick); + +Returns information about a table and it's indexes, as specified in +L, but with some limitations : + +=over + +=item * + +information in rows returned by the C<$sth> is incomplete with +respect to the L specification. All requested fields +are present, but the content is C for some of them. + +=back + +The following nonempty fields are returned : + +B: +The name of the schema (database) that the table is in. The default schema is 'main', temporary tables are in 'temp' and other databases will be in the name given when the database was attached. + +B: +The name of the table + +B: +Contains 0 for unique indexes, 1 for non-unique indexes + +B: +The name of the index + +B: +SQLite uses 'btree' for all it's indexes + +B: +Column sequence number (starting with 1). + +B: +The name of the column + =head2 ping my $bool = $dbh->ping;