Skip Menu |

This queue is for tickets about the DBD-SQLite CPAN distribution.

Report information
The Basics
Id: 87435
Status: resolved
Priority: 0/
Queue: DBD-SQLite

People
Owner: Nobody in particular
Requestors: DDICK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: PATCH: statistics_info perldoc
Sorry, forgot to include perldoc support for statistics_info
Subject: dbd_sqlite_statistics_perldoc.patch
diff -Naur old/lib/DBD/SQLite.pm new/lib/DBD/SQLite.pm --- old/lib/DBD/SQLite.pm 2013-07-28 15:29:31.000000000 +1000 +++ new/lib/DBD/SQLite.pm 2013-07-30 21:22:51.960515968 +1000 @@ -1574,6 +1574,47 @@ B<Note>: foreign key support in SQLite must be explicitly turned on through a C<PRAGMA> command; see L</"Foreign keys"> 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<DBI/statistics_info>, but with some limitations : + +=over + +=item * + +information in rows returned by the C<$sth> is incomplete with +respect to the L<DBI/statistics_info> specification. All requested fields +are present, but the content is C<undef> for some of them. + +=back + +The following nonempty fields are returned : + +B<TABLE_SCHEM>: +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<TABLE_NAME>: +The name of the table + +B<NON_UNIQUE>: +Contains 0 for unique indexes, 1 for non-unique indexes + +B<INDEX_NAME>: +The name of the index + +B<TYPE>: +SQLite uses 'btree' for all it's indexes + +B<ORDINAL_POSITION>: +Column sequence number (starting with 1). + +B<COLUMN_NAME>: +The name of the column + =head2 ping my $bool = $dbh->ping;
Thanks. Applied to the trunk. https://github.com/DBD-SQLite/DBD-SQLite/commit/5df6d6b0532127f5c9e2d18f322fe0e1fc37683d On Tue Jul 30 20:28:40 2013, DDICK wrote: Show quoted text
> Sorry, forgot to include perldoc support for statistics_info
Closed this ticket as DBD::SQLite 1.41_01 with the patch was released. Thanks.