/usr/share/perl5/Tangram/Type/String.pm is in libtangram-perl 2.10-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | package Tangram::Type::String;
use Tangram::Type::Scalar;
use strict;
use vars qw(@ISA);
@ISA = qw( Tangram::Type::Scalar );
$Tangram::Schema::TYPES{string} = __PACKAGE__->new;
sub literal
{
my ($self, $lit, $storage) = @_;
return $storage->{db}->quote($lit);
}
sub coldefs
{
my ($self, $cols, $members, $schema) = @_;
$self->_coldefs($cols, $members, 'VARCHAR(255)', $schema);
}
1;
|