Hi Rob,
From: "Rob Kinyon"
> What sort of features are you looking for? All the Perl ORMs wrap DBI,
> so connecting to different databases isn't a problem. Among the Perl
> ORMs, only DBIx::Class has resultsets, arguably the most powerful ORM
> concept. (It's not just among Perl ORMs - I don't kn
Good afternoon,
I'll open with disclaimer that I don't really know the answer,
but I asked the same question about 6 weeks ago with a new
project (with lots of similar components to an old project), and
I muddled through to answer it myself. I'll share my solution,
and hope for more feedback
If I want to share schema definitions, across tables, using DBIx::Class
what is the best way to do this?
I've looked at DBIx::Class::DynamicSubclass,
DBIx::Class::Helper::Row::SubClass, and the examples in
DBIx::Class::Manual::Cookbook (in the section 'Static sub-classing
DBIx::Class result classe
>> That's an interesting point of view. I tend to make my database changes
>> directly with SQL and when I am ready regenerate the schema files from there.
>
> This makes for poor testability. Otherwise, when you have a schema
> change, you either:
> 1. Force everyone sharing the same developer
On Mon, Nov 11, 2013 at 2:22 PM, Adam Witney wrote:
>
>
>> On 11 Nov 2013, at 16:05, Rob Kinyon wrote:
>>
>>> On Mon, Nov 11, 2013 at 10:48 AM, Adam Witney wrote:
>>>
>>> Thanks again for your email Rob,
>>>
>>> Just to clarify from looking at the docs again, I would have to edit all my
>>> Resu
> On 11 Nov 2013, at 16:05, Rob Kinyon wrote:
>
>> On Mon, Nov 11, 2013 at 10:48 AM, Adam Witney wrote:
>>
>> Thanks again for your email Rob,
>>
>> Just to clarify from looking at the docs again, I would have to edit all my
>> Result classes to add sim information, right? Wouldn't this brea
On Mon, Nov 11, 2013 at 10:48 AM, Adam Witney wrote:
>
> Thanks again for your email Rob,
>
> Just to clarify from looking at the docs again, I would have to edit all my
> Result classes to add sim information, right? Wouldn't this break every time
> I refreshed the schema from the database (./scr
Thanks again for your email Rob,
Just to clarify from looking at the docs again, I would have to edit all
my Result classes to add sim information, right? Wouldn't this break
every time I refreshed the schema from the database
(./script/xxx_create.pl model DB ... etc)?
Thanks again
adam
O
Adam -
Each test sets up the database exactly as it wants. In general, I
do something like:
$schema->deploy({
add_drop_table => 1,
});
$schema->load_sims( $spec );
in each one of my test scripts that use the Sims. Presumably, I'm
working in some in-memory SQLite database or a scratch MyS
Hi Rob,
Thanks again for your help.
The problem I am having is working out how to put it all together. The
documentation often contains snippets of code, but not a full (short)
script, which would help when trying to see how it all works together.
So with the ::Sims module, does each test s
What sort of features are you looking for? All the Perl ORMs wrap DBI,
so connecting to different databases isn't a problem. Among the Perl
ORMs, only DBIx::Class has resultsets, arguably the most powerful ORM
concept. (It's not just among Perl ORMs - I don't know of any other
ORM that has resultse
11 matches
Mail list logo