in reply to Re: sqlite show tables
in thread sqlite show tables

This one doesn't show how to do it in perl.

Replies are listed 'Best First'.
Re^3: sqlite show tables
by karlgoethebier (Abbot) on Jul 20, 2021 at 06:20 UTC

    Sure. Nothing but the truth. But the friendly manual I linked to isn’t about Perl. It is about SQLite. With the according driver DBD::SQLite and DBI I guess it should work. Probably with something like this:

    use DBI; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","",""); my $sth = $dbh->table_info(undef, $schema, $table, $type, \%attr); …;

    Uncomplete and not tested and it doesn’t compile, I know. And I suppressed or forgot the ugly details. As you like. The rest is left as an exercise to the reader.

    «The Crux of the Biscuit is the Apostrophe»