DBIx::SearchBuilder::Unique man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

DBIx::SearchBuilder::UUsereContributed Perl DocuDBIx::SearchBuilder::Unique(3)

NAME
       DBIx::SearchBuilder::Unique - Ensure uniqueness of records in a
       collection

SYNOPSIS
	   package 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
	   }

DESCRIPTION
       Currently, 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.

AUTHOR
       Simon Cozens.

COPYRIGHT
       Copyright 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.18.2			  2013-01-02	DBIx::SearchBuilder::Unique(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net