Query: dbix::searchbuilder::unique
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DBIx::SearchBuilder::Unique(3pm) User Contributed Perl Documentation DBIx::SearchBuilder::Unique(3pm)NAMEDBIx::SearchBuilder::Unique - Ensure uniqueness of records in a collectionSYNOPSISpackage Foo::Collection; use base 'DBIx::SearchBuilder'; use DBIx::SearchBuilder::Unique; # mixin my $collection = Foo::Collection->New(); $collection->SetupComplicatedJoins; $collection->OrderByMagic; while (my $thing = $collection->Next) { # $thing is going to be distinct }DESCRIPTIONCurrently, DBIx::SearchBuilder makes exceptions for databases which cannot handle both "SELECT DISTINCT" and ordering in the same statement; it drops the "DISTINCT" requirement. This, of course, means that you can get the same row twice, which you might not want. If that's the case, use this module as a mix-in, and it will provide you with an "AddRecord" method which ensures that a record will not appear twice in the same search.AUTHORSimon Cozens.COPYRIGHTCopyright 2005 Best Practical Solutions, LLC This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-07-28 DBIx::SearchBuilder::Unique(3pm)
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Installing Dash Shell on OS X Lion |
New UNIX and Linux History Sections |
My first PERL incarnation... Audio Oscillograph |