mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
oops, overlooked unnecessary non-core deps
This commit is contained in:
parent
550849a2ab
commit
6ab97143c8
3 changed files with 4 additions and 8 deletions
|
@ -4,7 +4,6 @@ package DBD::SQLite::VirtualTable::FileContent;
|
|||
use strict;
|
||||
use warnings;
|
||||
use base 'DBD::SQLite::VirtualTable';
|
||||
use List::MoreUtils qw/none/;
|
||||
|
||||
my %option_ok = map {($_ => 1)} qw/source content_col path_col
|
||||
expose root get_content/;
|
||||
|
@ -65,9 +64,10 @@ sub NEW {
|
|||
my @bad_cols = grep { !$src_col{$_} } @exposed_cols;
|
||||
die "table $src_table has no column named @bad_cols" if @bad_cols;
|
||||
}
|
||||
none {$_ eq $self->{options}{content_col}} @exposed_cols
|
||||
or die "$class: $self->{options}{content_col} cannot be both the "
|
||||
. "content_col and an exposed col";
|
||||
for (@exposed_cols) {
|
||||
die "$class: $self->{options}{content_col} cannot be both the "
|
||||
. "content_col and an exposed col" if $_ eq $self->{options}{content_col};
|
||||
}
|
||||
|
||||
# build the list of columns for this table
|
||||
$self->{columns} = [ "$self->{options}{content_col} TEXT",
|
||||
|
|
|
@ -41,7 +41,6 @@ package DBD::SQLite::VirtualTable::T;
|
|||
use strict;
|
||||
use warnings;
|
||||
use base 'DBD::SQLite::VirtualTable';
|
||||
use YAML;
|
||||
|
||||
sub NEW {
|
||||
my $class = shift;
|
||||
|
@ -89,7 +88,6 @@ package DBD::SQLite::VirtualTable::T::Cursor;
|
|||
use strict;
|
||||
use warnings;
|
||||
use base 'DBD::SQLite::VirtualTable::Cursor';
|
||||
use YAML;
|
||||
|
||||
sub NEW {
|
||||
my $class = shift;
|
||||
|
|
|
@ -82,7 +82,6 @@ package DBD::SQLite::VirtualTable::T;
|
|||
use strict;
|
||||
use warnings;
|
||||
use base 'DBD::SQLite::VirtualTable';
|
||||
use YAML;
|
||||
|
||||
|
||||
|
||||
|
@ -123,7 +122,6 @@ package DBD::SQLite::VirtualTable::T::Cursor;
|
|||
use strict;
|
||||
use warnings;
|
||||
use base 'DBD::SQLite::VirtualTable::Cursor';
|
||||
use YAML;
|
||||
|
||||
sub NEW {
|
||||
my $class = shift;
|
||||
|
|
Loading…
Add table
Reference in a new issue