App-AltSQL
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/AltSQL/Model/MySQL.pm view on Meta::CPAN
## Update autocomplete entries
if ($self->database) {
$self->current_database($self->database);
$self->update_autocomplete_entries($self->database);
}
$self->update_db_types();
}
sub update_autocomplete_entries {
my ($self, $database) = @_;
return if $self->no_auto_rehash;
my $cache_key = 'autocomplete_' . $database;
if (! $self->{_cache}{$cache_key}) {
$self->log_debug("Reading table information for completion of table and column names\nYou can turn off this feature to get a quicker startup with -A\n");
my %autocomplete;
my $rows = $self->dbh->selectall_arrayref("select TABLE_NAME, COLUMN_NAME from information_schema.COLUMNS where TABLE_SCHEMA = ?", {}, $database);
foreach my $row (@$rows) {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.803 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )