E
easy
I am a beginner to DBI in perl.
I would like some feature from DBIx::Class,
but also want to use native SQL query.
After reading some manual,
now I know only how to use
$schema->resultset('....')->search(....)
but the code is too hard to write and to read(understand).
for example, using mysql.
I would prefer to use
############################
my $rs = $some_obj->some_sub(
"SELECT p.id, p.name, c.id, c.name
FROM people p, company c
WHERE p.work_at = c.id");
my $obj = $rs->next();
print $obj->name;
#######################################################
is it possible?
or any other good module which can help?
tnaks a lot
I would like some feature from DBIx::Class,
but also want to use native SQL query.
After reading some manual,
now I know only how to use
$schema->resultset('....')->search(....)
but the code is too hard to write and to read(understand).
for example, using mysql.
I would prefer to use
############################
my $rs = $some_obj->some_sub(
"SELECT p.id, p.name, c.id, c.name
FROM people p, company c
WHERE p.work_at = c.id");
my $obj = $rs->next();
print $obj->name;
#######################################################
is it possible?
or any other good module which can help?
tnaks a lot