PROPOSAL A
--
[ Nigel Metheringham -- ni...@dotdot.it ]
[ Ellipsis Intangible Technologies ]
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org
I have a distinct feeling that this discussion is going deja vu all over
again, but from my point of view I vote:-
+1 Matt's proposal (new project team)
-1 to forking
--
[ Nigel Metheringham -- ni...@dotdot.it ]
[ Ellipsis Intangible Technol
I am pretty happy with either MST's original proposal or Chris Prather's
modified version (if pushed would go with Chris' amendments).
Nigel.
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: h
ensuring DBIC remains stable and does
not eat data.
Regards
Nigel.
--
[ Nigel Metheringham -- ni...@dotdot.it ]
[ Ellipsis Intangible Technologies ]
___
List: http
t; ___
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scs
my $rs1 = $c->model('weight::Mdata')
->search($where,
{ %{$attr},
prefetch => 'mc',
join => 'mt' });
[so the other attributes, the prefetch and the join are all part of a
single hash and not 3 different para
://metacpan.org/module/ORLite
That is intended as extremely light weight SQLite-specific ORM.
It might be a good halfway house between raw DBI and DBIx::Class.
Nigel.
--
[ Nigel Metheringham -- ni...@dotdot.it ]
[ Ellipsis Intangible
return $self->search({the_main_query_to_search_the_main_rows},
{prefetch=>' the_has_one_accessor'});
https://metacpan.org/module/DBIx::Class::ResultSet#prefetch
https://metacpan.org/module/DBIx::Class::Manual::Cookbook#Using-joins-and-prefetch
, with one application
fully on this system and one minor one also using it. The other few
apps under maintenance are likely to transition shortly.
Nigel.
--
[ Nigel Metheringham -- ni...@dotdot.it ]
[ Ellipsis Intangible Technologies
On 16 Mar 2011, at 15:46, Anthony Gladdish wrote:
> Have I missed the documentation that says it only works with integer version
> numbers?
Yes - its mentioned in Manual/Intro.pod
It can probably be overridden...
Nigel.
--
[ Nigel Metheringham ---
t with all the modules I use built
with perlbrew and then packaged as an rpm under a different
exec path to the system perl.
Nigel.
--
[ Nigel Metheringham -- ni...@dotdot.it ]
[ Ellipsis Intangibl
to reword/add to them so that they are less confusing
for you - thats where a lot of doc tweaks have come from since those
learning how to use this stuff are often better at explaining it than
the code authors :-/
Nigel.
--
[ Nigel Metheringham -- ni...@dotd
r the query.
In any case, if you want a RS, you can always use the _rs accessor,
so
$person->person2address_rs->delete;
will work without any ambiguity (and works in Template Toolkit if
you are playing with objects within templates where the inherent
array mode tend
-many methods:-
$person->set_addresses([]);
http://search.cpan.org/perldoc?DBIx::Class::Relationship::Base#set_$rel
Nigel.
--
[ Nigel Metheringham nigel.methering...@intechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
__
ther a resultset of the
related rows (in scalar mode - which is what your example has),
or the matching rows in array mode, so you probably want:-
while( my $file = $files->next() ) {
print($_->name) foreach ($file->fieldfiles);
}
Nigel.
--
[ Nigel Metheri
On 8 Jun 2010, at 16:50, Nigel Metheringham wrote:
>
> You may be able to approach the speed of pure DBI if you use
> DBIx::Class::ResultClass::HashRefInflator
Thinking about this, if you are restricting the column set you
are using, you are strangling your objects in a nasty way anyho
gh you don't want to be iterating over that number of
rows manually if you can avoid it...
Nigel.
--
[ Nigel Metheringham nigel.methering...@intechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
n
for an idea as to whats happening here - the get_column is a resultset
method not a row method]
Nigel.
--
[ Nigel Metheringham nigel.methering...@intechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
_
-Class-0.08118/lib/DBIx/Class/Schema/Versioned.pm
> for this
Without Versioned (which I use myself), you can just use the deploy* stuff in
Schema and DBI -
http://search.cpan.org/~ribasushi/DBIx-Class-0.08118/lib/DBIx/Class/Schema.pm#deploy
Nigel.
--
[ Nigel Metheringham
On 16 Sep 2009, at 20:43, Sungsam Gong wrote:
My email below does not seem to be sent properly.
Please don't do that. You are using gmail - its quite normal for
gmail to hide your own postings to a mailing list from you.
Nigel.
--
[ Nigel Metheri
them)
So comments and votes (but this ain't a democracy) are welcome on the
best way to take this forward...
Nigel.
[Just to be clear - none of this should break existing code - the test
suite all still passes]
--
[ Nigel Metheringham nigel.meth
add_relationship
You can always have 2 identical, other than the join_type attribute,
relationships defined under different names, to allow both forms of
joins to be performed as required...
[Remember that join/prefetch in resultsets refer to relations and not
tables]
Nigel.
--
[ Nigel
urns a resultset, so:-
my $rs = $schema->resultset('Whatever')->search({black => 'white'});
$rs->result_class('DBIx::Class::ResultClass::HashRefInflator');
while (my $hash = $rs->next) {
# smoke your hash
}
--
[ Nigel Metheringham
ippan.
So it looks like you are a short upgrade from having your wish
fulfilled...
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
___
List: http://lists.s
rone to do something unexpected later).
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix
pain.
Anyhow, suggested changes for now were:-
- add additional bits to documentation for ResultSet delete and
delete_all to explain the problem
- modify delete to either die or warn when it is applied to a
rs with joins in it.
If anyone has good wor
On 5 Oct 2008, at 12:00, Matt S Trout wrote:
On Thu, Oct 02, 2008 at 02:34:10PM +0100, Nigel Metheringham wrote:
DBIx::Class::StartupCheck
-
Both old and new perls trigger the startup check - as will any perl
with
the fixes to bless/overload bugs that is less than
ock secs (30.40 usr + 1.12 sys = 31.52
CPU) @ 5.43/s (n=171)
join_all: 32.5188 wallclock secs (30.22 usr + 1.30 sys = 31.52
CPU) @ 6.38/s (n=201)
prefetch_all: 30.8614 wallclock secs (29.40 usr + 0.63 sys = 30.03
CPU) @ 3.33/s (n=100)
Nigel.
--
[ Nigel Metheringham [
had this problem.
Anything earlier is outdated.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC
Is this the bug referred to by the DBIx startup message?
Yes.
And the bug that all the fuss on slashdot and the like was about a few
weeks back.
Has anyone done any decent testing on this yet, or looked at what
patchset they actually applied?
Nigel.
--
[ Nigel Metheringham
fixes changes how update runs the scripts.
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-
ntion when they turn it on?
I applied that patch and modified the copy documentation yesterday on
svn trunk.
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/p
th a look - see
http://search.cpan.org/dist/DBICx-AutoDoc/
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/list
with something that generically puts default values in
when the key/value to insert was missed out altogether, but in general
I tend to let the DB do that. At present it looks like default_value
is used only by deploy.
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
able - M:M does.
Sometimes the link table may be disguised because its a useful entity
in its own right... ie it contains additional info with the
relationship.
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO
purely consists of 2
fields - the event id and the ticket_agent id, and links the pair.
I refer to that as a link table, but I am a sysadmin rather than a DB
expert :-)
Hope that helps a bit.
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this mes
.
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
___
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http
, $val );
}
my $result_set =
$c->model('DLDB::Model::CatalystModelName::AuthorizedUsers')-
>search(
{
-and => [
{ 'policy' => $data->{policy} },
{ 'email' => { -in => [EM
Jon,
You should look at RH bug #196836 for information on the Red Hat
perl bug that causes this.
https://bugzilla.redhat.com/show_bug.cgi?id=196836
Nigel.
--
[ Nigel Metheringham [EMAIL PROTECTED] ]
[ - Comments in this message are my own and not ITO opinion/policy
39 matches
Mail list logo