[Dbix-class] Retrieveing substring?

Alex Povolotsky tarkhil at over.ru
Tue Feb 26 12:40:16 GMT 2008


Hello!

I have a very simple record

create table location (
lid serial primary key,
name varchar(128) not null,
descr text);

I'd like to retrevie for list

select lid, name, substr(descr,100) as descrbegin from location;

How should I do it with DBIx::Class? I do not want to fetch 
(potentially) very long description every time.

Alex.




More information about the DBIx-Class mailing list