More Bugs on Moose

It try it out day here in the Moose-Pen

With that new API in hand lets give a practical test in my 'xt' dir another go. Starting with this test;


my $regions_count = $user_db->regions_count_data();
$da->only_elements();
$da->add_gather({elements => [{name => 'description',
view => 'region'},
{ name => 'user_id',
view => 'people' }],
view_elements=>[{name => 'description',

Maybe more Moose Bugs?

Still playing with the API here in the Moos-Pen today.

Now that I have that new API for 'Gather/Group By' I will have to update how Driver::DBI works. Starting with the new test in the 50_group_by.t test case.


{
caption => "group by with 2 elements and 2 view_elements",
key => 'gather',
gather => {
elements => [
{
name => 'first_name',
vie…

Moose Finds More Bugs

Back to the API day here in the Moose-Pen

Well I was just going to do a simple test post-ette today but on my first run I ran into this in the '30_view.t' test case for Database::Accessor;


Can't call method "view_count" on an undefined value at D:\GitHub\database-
accessor\lib/Database/Accessor.pm line 762.
# Looks like your test exited with 255 before it could output anything.


Hmm so I have a few loose ends from yesterday'…

Even More Moose API

Its even more moose day here in the Moose-Pen

For those of you who might have been a little disappointed that there has not been much Moose in my posts of late today you are in for a treat.

Yesterday I had the problem where I may have a nice Database::Accessor all set up that returns all the people in a DB. Good and nice but now I wanted to group them by 'region' which I could do like this;


$address_da->only_elements({region=>1});
$da->add_…

Still Extending Mooosse

Back to basics here in the Moose-Pen

Still expanding my 'xt' tests after yesterday fix. Going to try the “Like” operator to start;


$da->add_condition(
{
left => {
name => 'user_id',
view => 'people'
},
operator => 'Like',
right =>{value=>'atkinst%'}
},
);


no real need for all the rest of the test code here mostly the same as before. The above…