use Text::Balanced qw( extract_bracketed );
use Class::C3;
-our $VERSION = '0.04999_01';
+our $VERSION = '0.04999_10';
=head1 NAME
return { rels => \@rels, uniqs => \@uniqs, auto_inc => \%auto_inc };
}
-sub _column_is_auto_increment {
+sub _extra_column_info {
my ($self, $table, $col_name, $sth, $col_num) = @_;
-
+ ($table, $col_name) = @{$table}{qw/TABLE_NAME COLUMN_NAME/} if ref $table;
+ my %extra_info;
+
$self->{_sqlite_parse_data}->{$table} ||=
$self->_sqlite_parse_table($table);
- return $self->{_sqlite_parse_data}->{$table}->{auto_inc}->{$col_name};
+ if ($self->{_sqlite_parse_data}->{$table}->{auto_inc}->{$col_name}) {
+ $extra_info{is_auto_increment} = 1;
+ }
+
+ return \%extra_info;
}
sub _table_fk_info {