1 package SL::Auth::ColumnInformation;
6 use Scalar::Util qw(weaken);
11 my ($class, %params) = @_;
13 my $self = bless {}, $class;
15 $self->{auth} = $params{auth} || croak "Missing 'auth'";
24 return $self if $self->{info};
28 foreach my $table (qw(session session_content)) {
32 WHERE (attrelid = 'auth.${table}'::regclass)
37 $self->{info}->{$table} = { selectall_as_map($::form, $self->{auth}->dbconnect, $query, 'attname', [ qw(attname) ]) };
45 return $self->_fetch->{info};
49 my ($self, $column, $table) = @_;
50 return $self->info->{$table || 'session_content'}->{$column};